Welcome to the LimeSurvey Community Forum

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

Implementing a Farsi font in LS 3.x

  • gwdgls
  • gwdgls's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago #233093 by gwdgls
Implementing a Farsi font in LS 3.x was created by gwdgls
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.28.33+221020
Own server or LimeSurvey hosting: Own Server (Debian 10)
Survey theme/template: Extension of fruity
==================
Hi,

we did our best to implement a Farsi font in our LimeSurvey, but failed to do so in some areas.
After installing the package "
Code:
fonts-farsiweb"
we chose one of the installed fonts (nazlib) and tried to proceed as described at

- forums.limesurvey.org/forum/design-issue...a-font-in-limesurvey and
- manual.limesurvey.org/New_Template_Syste...3.x#Using_local_font .

Still, the font is not to be seen e.g. in the fonts dropdown menue in the text elements editor, and consequently, the text elements continue to appear in Latin font. Also, in the survey preview in Persian, the question group title and the questions themselves are in Latin font. Strangely, though, in one of the questions, the text "Choose one of the following answers" and the answer choices below appear in the / a Farsi font in the Persian survey preview. The texts are all aligned right to left, even those that remain in Latin font.

Does anyone have an idea what remains to be done to allow a survey to be edited and displayed completely in Farsi font?
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #233102 by Joffm
Replied by Joffm on topic Implementing a Farsi font in LS 3.x
Hi,
the system messages that are still in Latin seem to be not translated.
Having a look at the translation page you see that "Persian" is translated only to 57%.
 
Please, feel free to contribute to LimeSurvey by adding and/or improving the translation.
Login is the same as here in the forum.

And about the font? 
It is from the github page, isn't it?
[url] github.com/behnam/fonts-farsiweb [/url]

We don't know how exactly you implemeted it.
Would be important to see this.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • gwdgls
  • gwdgls's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago - 1 year 5 months ago #233804 by gwdgls
Replied by gwdgls on topic Implementing a Farsi font in LS 3.x
Hi and thanks!

The package is packages.debian.org/bullseye/fonts-farsiweb .

We tried then to implement the font "nazlib" from this package to a single theme as described in manual.limesurvey.org/New_Template_Syste...om_fonts_to_my_theme .

We have /opt/limesurvey/assets/fonts/nazlib.css and
/opt/limesurvey/assets/fonts/font-src/nazlib/nazlib.ttf

Even though we added the font to /opt/limesurvey/upload/themes/survey/<themename>/css/custom.css
/opt/limesurvey/upload/themes/survey/<themename>/config.xml
/opt/limesurvey/application/config/fonts.php
and to the options.twig in
application/views/survey/questions/answer/list_dropdown/rows/ and
application/views/survey/questions/answer/list_with_comment/dropdown/rows

We still don't find the Nazlib font in the dropdown list for fonts in the text elements' editors nor the question editors.

What else is missing here, or what did we do wrong?
Last edit: 1 year 5 months ago by gwdgls.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose