Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Export as queXMLPDF not working in Amharic

  • adamzammit
  • adamzammit's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
4 years 8 months ago #187437 by adamzammit
Replied by adamzammit on topic Export as queXMLPDF not working in Amharic

jelo wrote:

thtrede wrote: I would take the easy way (for me) and send the PDF here..


The working font is "FreeSerif". That seems to have the "Amharic" characters included.


But the additional styles (like FreeSerif bold, italic etc.) seem to have the "Amharic" characters not included.


Thanks @jelo we can use this information to help solve the problem without font changes.

When exporting to queXMLPDF - change the style to this:

td.questionTitle {font-weight:bold; font-size:12pt;}
td.questionTitleSkipTo {font-weight:normal; font-size:16pt;}
td.questionText {font-weight:normal; font-size:12pt;}
td.questionSpecifier {font-weight:normal; font-size:12pt;}
td.vasLabel {font-weight:normal; font-size:10pt; text-align:center;}
td.questionHelp {font-weight:normal; text-align:right; font-style:normal; font-size:8pt;}
td.questionHelpAfter {text-align:center; font-weight:normal; font-size:10pt;}
td.questionHelpBefore {text-align:center; font-weight:normal; font-size:12pt;}
td.responseAboveText {font-weight:normal; font-style:normal; text-align:left; font-size:12pt;}
td.matrixResponseGroupLabel {font-weight:normal; font-style:normal; text-align:left; font-size:12pt;}
span.sectionTitle {font-size:18pt; font-weight:normal;}
span.sectionDescription {font-size:14pt; font-weight:normal;}
div.sectionInfo {font-style:normal; font-size:10pt; text-align:left; font-weight:normal;}
td.questionnaireInfo {font-size:14pt; text-align:center; font-weight:normal;}


I have removed italic and bold styles for question text. The existing fonts should then work.

Adam
The topic has been locked.
  • thtrede
  • thtrede's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #187438 by thtrede
Replied by thtrede on topic Export as queXMLPDF not working in Amharic
Dear Adam,
Dear All,

thanks... works perfectly fine (could have thought of that myself once it was clear the "bold" and "italic" as the problem.

All in all: A great thanks to all. Never had a community tat was so committed and tried to help so quickly (es. for such a slightly "exotic topic). Really great!

Thanks

Thorsten
The following user(s) said Thank You: holch
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #187477 by DenisChenu
Replied by DenisChenu on topic Export as queXMLPDF not working in Amharic
This issue must be reported, and since a solution is adding FreeSans : maybe we canc check FreeSans for other language too.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
4 years 8 months ago #187486 by jelo

DenisChenu wrote: This issue must be reported, and since a solution is adding FreeSans

Why is FreeSans the solution?
Is your GITHUB link to assets showing the current amount of fonts shipped with LimeSurvey?

The Amharic pdf document contained FreeSans and FreeSerif fonts.
The issue is that Amharic is not in all styles included. I would expect that FreeSans has the same issue.

If you look at the amount of characters for certain languages there seems to be always a missing one.
software.sil.org/fonts/

For the long run:
Since monitoring fonts is tough, I would recommend to add a feature to allow uploading / overriding assets (like fonts) per survey. And to define formats like queXML pdf export via format files on surveylevel too.

For the short run:
Define a central font repository in the codebase.
Choose a "gold" standard font set (sans serif and serif) and ask users to check known languages for issues.
Stick to that gold standard font set as default.

Denis is suggesting GNU FreeFont:
en.wikipedia.org/wiki/GNU_FreeFont

LimeSurvey seemed to also considered Noto Fonts for surveys.
en.wikipedia.org/wiki/Noto_fonts

Other projects can be found here:
en.wikipedia.org/wiki/Open-source_Unicod...pefaces#21st_Century

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #187512 by holch
Replied by holch on topic Export as queXMLPDF not working in Amharic
I am not up to date with html/css.

But before it became "cool" to include fonts into websites (e.g. Google Fonts, etc) it was common to define fonts like somehow like this "Helvetica, Verdana, Arial, sans-serif".

So at the end you always had a fallback to any sans-serif font that is installed on the computer. Might not look good, but should definitely work.

I also assume that someone who will answer a questionnaire in such an exotic language that requires a special font, has at least one font installed that should work.
But i guess this only works for the web version, not the PDF, right?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
4 years 8 months ago #187528 by jelo

holch wrote: But i guess this only works for the web version, not the PDF, right?

The PDF generation is server side and the fonts are embedded into the pdf file. So we need fonts with the correct licence to be bundled with LimeSurvey. Allowing adding fonts serverside via GUI would be nice too.

I'm trying to graps the current situation of fonts inside LimeSurvey. I'm not using all these features and just learn more about the inner workings around pdf export.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #187554 by holch
Replied by holch on topic Export as queXMLPDF not working in Amharic
Thought so. Thanks for confirming.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #187758 by DenisChenu
Replied by DenisChenu on topic Export as queXMLPDF not working in Amharic

jelo wrote:

DenisChenu wrote: This issue must be reported, and since a solution is adding FreeSans

Why is FreeSans the solution?
Is your GITHUB link to assets showing the current amount of fonts shipped with LimeSurvey?

Yes, github link is current one only

We have FreeSans : right, but not FreeSansBold, FreeSansItalic etc …


When i update font system for arabic : i test with dejavusans , i think i test with freesans too ? Dodn't remember.

I don't like to add whole fonts because it's heavy if we don't need it.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose