Focal Point
[SOLVED]delta distinct symbol ∆ in a column title

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3397058386

September 13, 2016, 09:59 AM
UdoF
[SOLVED]delta distinct symbol ∆ in a column title
hi all,
how is it possible to have the delta distinct symbol ∆ in a column title of a WebFOCUS Report with output for PDF.

Thanks
Udo

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8105
September 13, 2016, 04:32 PM
Waz
If its in a font that is available to PDF, then it can be done.

Is it with other text ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

September 14, 2016, 06:25 AM
UdoF
Hi Waz,

for example
COMPUTE Difference/D12.2 = Sales_June - Sales_May; AS '∆ 05 - 06'

in the fex I can code that, but after execution instead of ∆ a ? is shown in column title.
Thanks for your help

Udo


WebFOCUS 8105
September 14, 2016, 08:05 AM
Sureshkuamr Murugesan
UdoF,

You can try to save that symbol as image file and call it from the DEFINE or COMPUTE field.
As of now i do not have any codes for that.

But i guess it will give some good result.


Regards,
Suresh


WebFOCUS 8.0.05 - BI Portal, Developer Studio, Dev/App Studio, Excel, PDF, Active Formats and HTML5, Adobe Flex Builder, VBA
September 14, 2016, 02:35 PM
j.gross
quote:
for example
COMPUTE Difference/D12.2 = Sales_June - Sales_May; AS '∆ 05 - 06'

in the fex I can code that, but after execution instead of ∆ a ? is shown in column title.
Thanks for your help

Udo


I suspect some step (either while storing the fex file, or while reading it and stuffing it into FOCSTACK at run time) is mapping the source code onto a domain of just 256 bit combinations; the Greeks (in UNICODE source) get left out in the cold.

If my conjecture is right, styling will be of no help - by the time styling gets applied, ∆ is nowhere in sight.


I had a similar issue a while back, and was able to solve it only by breaking the text into multiple fields, styling the one to contain the delta using some wingding font, and stuffing the field with a plain old alpha character (in my source) that renders as ∆ under that font. -- But that idea cannot be applied to column-headings.


- Jack Gross
WF through 8.1.05
September 15, 2016, 03:29 AM
Tony A
You can achieve this in the main 3 output formats by setting the title font to symbol -

-SET &Delta = HEXBYT(68,'A1');
TABLE FILE GGSALES
  SUM DOLLARS
      COMPUTE Difference/D20.2 = BUDDOLLARS - DOLLARS; AS '&Delta 05 - 06'
   BY STCD
ON TABLE PCHOLD FORMAT '&WFFMT.(HTML,PDF,EXL07).Format.'
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
  grid=off, size=10, $
  type=title, column=N3, font=Symbol, $
ENDSTYLE
END
-RUN


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
September 15, 2016, 06:19 AM
Tony A
Before anyone decides to point out that you could also use 'D 05 - 06' in this case, Yes, I know but this gives you an idea if you want use alternative symbols.

Just make sure that the font that you choose to use will correctly render all the characters that you need in the title!


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
September 15, 2016, 09:43 AM
BabakNYC
Hey Tony, I get the delta symbol in PDF but HTML doesn't render in Chrome. When I try it in ie it shows the Delta. How do I check to see if the font is available in the browser?


WebFOCUS 8206, Unix, Windows
September 15, 2016, 11:48 AM
j.gross
Babak --

See https://en.wikipedia.org/wiki/Symbol_(typeface):

quote:
Full legacy support of the Symbol font is provided by major modern web browsers like Internet Explorer and Google Chrome. That support involves a specific handling of Adobe's special encoding, which is not properly implemented in at least some versions of other browsers, including Opera, Safari and Firefox. Such browsers do not correctly render legacy HTML documents that make explicit use of the Symbol font.



- Jack Gross
WF through 8.1.05
September 15, 2016, 06:09 PM
Waz
Here is another interesting way to set the font in the title.

An extension of what Tony posted.

TABLE FILE GGSALES
  SUM DOLLARS
      COMPUTE Difference/D20.2 = BUDDOLLARS - DOLLARS; AS '<font face="symbol">D</font> <font face="Helvetica">A</font><font face="Palatino Linotype">B</font><font face="Impact">C</font><font face="Georgia">D</font>'
   BY STCD
ON TABLE PCHOLD FORMAT '&WFFMT.(HTML,PDF,EXL07).Format.'
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
  grid=off, size=10, $
-*  type=title, column=N3, font=Symbol, $

MARKUP=ON, $
ENDSTYLE
END
-RUN


But does have issue with HTML and Excel


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

September 16, 2016, 09:56 AM
David Briars
Thank you Waz.

The font markup, within the column heading text, worked perfectly for me.
September 20, 2016, 05:08 AM
UdoF
Hi all, thank you for the good tips. Now it works fine. best regards Udo


WebFOCUS 8105