fpdf2
fpdf2 copied to clipboard
Translate the one-page tutorial in your language!
The tutorial is a simple Markdown document:
- rendered as HTML: https://pyfpdf.github.io/fpdf2/Tutorial.html
- source: https://github.com/PyFPDF/fpdf2/blob/master/docs/Tutorial.md
It is currently available in several languages, listed in the README and the documentation index page.
PRs are very welcome to add new translations! PR authors will be added to the contributors list & map.
Guidelines:
- open a Pull Request that creates or modifies the corresponding
docs/Tutorial-xy.mdfile, taking inspiration fromdocs/Tutorial.md(wherexyis the ISO_639-1 language code) - if you created a new file, add a reference to it in
docs/index.md,mkdocs.yml,README.mdandCHANGELOG.md, taking inspiration from the references to existing translated tutorials
Hey, I want to work on this issue. I will translate this tutorial in Hindi(हिंदी)
Awesome! Thank you @Mridulbirla13 😊
If you need any help, on fpdf2 or how to submit a PR, ask you your questions here!
Hi, I can take care of the French translation if you want :)
@Tititesouris : chouette ! Je procrastine à faire la trad depuis des mois ^^ Avec plaisir !
I can provide a German translation.
Great! Go ahead 😉
Hey @Lucas-C, vu la quantité de travail, mon temps limité et le fait que Hacktoberfest arrive bientôt à son terme, est-ce que ça te dérange si je te fais une première PR avec le tuto 1 (tu peux du coup déjà me faire un retour sur la qualité), et une autre PR d'ici le 30 avec au moins les tutos 2 & 3 ? Dans tous les cas je te traduis l'entièreté d'ici la mi-novembre 😉
Aucun problème, fais ça au rythme que tu veux !
The tutorial is a simple Markdown document:
- rendered as HTML: https://pyfpdf.github.io/fpdf2/Tutorial.html
- source: https://github.com/PyFPDF/fpdf2/blob/master/docs/Tutorial.md
It is currently available in English, Français, Deutsch, Hindi, Italian, Portugese, Russian & Spanish.
PRs are very welcome to add new translations!
Hey! I can provide a Telugu translation for this.
@yellkrishna That would be wonderful! Thank you for volunteering 🙏❤️
Hi! I want to translate in Tamil please.
Hi and welcome @bcronald ! That would be great 😊 Do you need guidance on how to proceed, or do you already know how to submit a PR?
By the way @yellkrishna & @bcronald: have you checked that fpdf2 can render text in those languages?
I'm curious because we have already faced limitations with Hindi: https://github.com/PyFPDF/fpdf2/issues/365
Hi and welcome @bcronald ! That would be great blush Do you need guidance on how to proceed, or do you already know how to submit a PR?
Thanks. Yes please, guidance would be nice. Sorry for the late reply.
By the way @yellkrishna & @bcronald: have you checked that
fpdf2can render text in those languages? I'm curious because we have already faced limitations with Hindi: #365
No, not yet checked in Tamil. I will do that and post result.
By the way @yellkrishna & @bcronald: have you checked that
fpdf2can render text in those languages? I'm curious because we have already faced limitations with Hindi: #365No, not yet checked in Tamil. I will do that and post result.
Tamil is not being rendered correctly.
Code: from fpdf import FPDF
pdf = FPDF() pdf.add_page() pdf.add_font('lohit-taml', fname='/usr/share/fonts/truetype/lohit-tamil/Lohit-Tamil.ttf') pdf.set_font('lohit-taml', size=18) pdf.write(8, u'யாதும் ஊரே யாவரும் கேளிர்') pdf.output("fpdf2_tamil_test.pdf")
Attached the resulting pdf below: fpdf2_tamil_test.pdf ்
Tamil is not being rendered correctly.
It's a pity 😔 Thanks for testing @bcronald. I don't know Tamil: is the problem with ligatures, like for Hindi text, or is there a different issue here?
is the problem with ligatures, like for Hindi text, or is there a different issue here?
Yes, it is the same problem as here https://github.com/carlhiggs/global_scorecards/issues/7 When the text is selected and copied from the pdf and pasted into text editor (I am on Ubuntu 20.04) it apperars correctly, wheras in the pdf, the components of a complex character are either not arranged in the correct sequence or not attached together with main character.
Hi, I can provide a Greek translation.
Hi and welcome @bcronald ! That would be great blush Do you need guidance on how to proceed, or do you already know how to submit a PR?
Thanks. Yes please, guidance would be nice. Sorry for the late reply.
I suggest to read the following documentation on how to submit a contribution: https://opensource.guide/how-to-contribute/#how-to-submit-a-contribution
Once you will be familiar with the basic concepts of git & GitHub,
you can copy the file docs/Tutorial.md in a file docs/Tutorial-ta.md and perform the translation. Then submit a Pull Request containing this file.
Hi, I can provide a Greek translation.
That would be awesome @sokratisvas , great!
Do you need any more information or guidance?
Hi I can provide Urdu Translation :)
Hi and welcome @Dani-Google!
That would be awesome 😊
You are very welcome to submit a Pull Request of a new docs/Tutorial-urd.md file!
Ok, thanks :)
@Lucas-C Hi there, I can try a Kannada language translation, will check if its rendered properly. Is that okay?
@Lucas-C Hi there, I can try a Kannada language translation, will check if its rendered properly. Is that okay?
That is more than OK, you are very welcome to do so @SmritiSatyan! 😊
Hi, I can start working on hebrew translation
Hi, I can start working on hebrew translation
That would be great, thank you @TzviGreenfeld 😊
Hey there! I want to finish the French translation.
Hey! I would love to work on Turkish translation.
Hey! I would love to work on Turkish translation.
Nice! Go on, you are very welcome do do so @ethmtrgt 😊