I been trying to insert a Unicode character ∇ or ▽, so it shows in the PDF generated by Apache FOP.
Это то, что я сделал до сих пор:
-
First you have to know the correct Unicode codepoint to represent the character according to this basic help Apache XSL-FO Input, that Unicode codepoint can be found in unicode.org inside a list of Mathematical Operators. The code is
∇
∇ NABLA, я could also use▽
▽ a down-pointing triangle. -
After finding the correct code я have to select a font containing the necessary glyph and the Adobe PostScript and PDF Specification specify Base-14 Font Character Mapping that must be available to every PostScript interpreter and PDF reader, so я search in the list and the font Symbol contains ∇
∇
, (no font contains▽▽
discarded) -
После этого поиска код результата, который, я думаю, должен использовать в xsl: fo is:
<fo:block font-family="Symbol"> ∇ </fo:block>
-
The problem is when it generates the PDF, the result is not what я expected "∇", but instead of that it shows a "?", я read that when it can't show the character usually shows "#", but my code is showing "?".
-
Я использую Apache fop 0.95, я подозреваю, что это версия, которая вызывает проблему, и я должен обновить до 1.0, но на данный момент версия, используемая в производстве, и лидер команды сказал, что это сложно на данный момент, чтобы обновить его.
Итак, вот в чем проблема, может быть что-то другое помимо версии? Может быть, что-то дамми я забыл сделать? Как отобразить символ Unicode с помощью Apache fop?