Projet

Général

Profil

Actions

R&D #1430

fermé

Manage RTL in produced PDF

Ajouté par Johan Cwiklinski il y a presque 4 ans. Mis à jour il y a presque 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
Files generation
Version cible:
Début:
28/05/2020
Echéance:
% réalisé:

100%

Temps estimé:

Description

See if TCPDF can handle RTL languages like Arabic, and how to implement it the right way.

Mis à jour par Johan Cwiklinski il y a presque 4 ans

  • Sujet changé de Manage LTR in produced PDF à Manage RTL in produced PDF

Mis à jour par Johan Cwiklinski il y a presque 4 ans

  • Description mis à jour (diff)

Mis à jour par Johan Cwiklinski il y a presque 4 ans

See https://tcpdf.org/examples/example_018/

As far as I can see, the only problem would be to know current language direction.

Mis à jour par Johan Cwiklinski il y a presque 4 ans

See https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Web_Localizability/Creating_localizable_web_applications

It seems PHP offer no way to get language direction, direct nor indirect. Other apps I've seen brings this information from their translation files. In MDN article above, direction is checked from an array of RTL langs, this may be applicable to Galette.

Mis à jour par Johan Cwiklinski il y a presque 4 ans

  • Statut changé de Nouveau à In Progress
  • Version cible mis à 0.9.4
  • % réalisé changé de 0 à 90

It's almost done. Some notes:
- there may be an override issue on header when description (from preferences) is too long. Seems to be a bug in the lib used. It is quite simple using PDF models to change header in that case,
- RTL does not seems relevant on members card
- I do not know if this is really useful on generated labels.

All other should be OK.

Mis à jour par Johan Cwiklinski il y a presque 4 ans

  • Statut changé de In Progress à Résolu
  • % réalisé changé de 90 à 100

Mis à jour par Johan Cwiklinski il y a presque 4 ans

  • Statut changé de Résolu à Fermé
Actions

Formats disponibles : Atom PDF