[18:59] hi godbyk, do you have some minutes to talk about the french punctuation for the ubuntu manual ? (but this can wait another day :) ) [19:01] YoBoY: Sure! [19:02] great :) [19:03] How can I help? [19:04] I'm trying to understand how polyglossia work, and I don't really understand. It seems the spaces inserted are only normal spaces, but I don't know if i'm testing this right ^^". [19:05] It should insert thin or thick spaces depending on the punctuation. [19:06] Thin spaces are used before ! ? !! ?? ?! !? and ; [19:06] yes for the ; it's \nobreak\thinspace and for : it's \nobreakspace [19:06] Thick spaces are used before : [19:07] (reading it there : https://github.com/fc7/polyglossia/blob/master/tex/gloss-french.ldf ) [19:07] And for quotation marks (guillemots), thick spaces are used. [19:07] Yep, that's the file. [19:07] :) [19:08] but it seems the space sizes are the same on my pdf :] [19:08] Hmm.. Can you point me to some examples? I'll take a look. [19:08] Actually, give me a moment and I'll create a test document. [19:10] my test file : http://pastebin.com/WBVt8y95 [19:10] godbyk, ^ [19:11] (I'm a complete beginer in TeX things ^^") [19:13] ok sorry it's my eyes, I need to change them ^^" the ; have the correct space size [19:14] but the : don't have the correct one, it's a bug in polyglossia [19:17] Give this one a shot: http://pastebin.com/ia4zV26b [19:17] just compile it with xelatex. [19:18] The difference between \thinspace and \nobreakspace is rather small. It's easy to miss it. [19:20] yes [19:21] when we use a \, it's smaller than the thinspace [19:23] \thinspace and \, are exactly the same. [19:28] YoBoY: My understanding is that there should be a thin space before semicolons, question marks, and exclamation marks, but a normal word space before the colon and inside guillemets. [19:28] YoBoY: See this thread and the language note . [19:30] second question for tonight, how can I test this sample file with the ubuntu-manual class ? (something to add on the xelatex commande ?) [19:32] YoBoY: Here's a translation test file that I created for French: http://pastebin.com/vzXi5h7s [19:32] YoBoY: You can add or remove text from it as you test things. [19:32] YoBoY: You may also need to play with code in the um-french.clo file. [19:32] That's where we put all of the French-specific LaTeX customizations. [19:33] yes I have removed the hack to deactivate the punctuation :p [19:35] thank you for the test file [19:35] If you have any questions or run into any problems, let me know. I'm happy to help. [19:35] Oh, you'll need to run that translation test file from the ubuntu manual directory (the one that contains the ubuntu-manual.cls file). [19:36] Otherwise it won't be able to find that file. [19:36] I can enter it when xelatex ask it [19:36] but this is throwing an error ^^" [19:37] Probably best to just run it from the ubuntu manual directory since it'll need the um-french.clo file from there, too. [19:37] yes, no more error like that [19:37] thanks [19:40] I'll add a sentence to see what appen when we already have spacings (like exemple1~; exemple2\,! ) [19:40] It may double the spacing in some cases. [19:51] for a first test, (with an empty um-french.clo file) I can't see extra spaces [19:51] and the forced with or without a ~ polyglossia do the spacing work [19:53] In some instances, Polyglossia tries to remove any existing space before adding the proper spacing. [19:53] ok [20:01] what I can see so far is, if we keep using [nbsp] in launchpad, polyglossia can do its job and replace the ~ by the right space, if we put \, polyglossia don't touch it. [20:04] YoBoY: That sounds about right. [20:04] YoBoY: The \, is actually a kern and not a space. [20:06] ok [20:07] we will try to have a clean um-french.clo for the raring release :) [20:07] No problem. [20:07] I just figured it'd be easier to let LaTeX handle the spacing instead of having the translators insert the spaces everywhere. [20:08] the thinspace width can be changed if needed by our great translators ? [20:08] Yes. [20:09] I can modify the spacing parameters used by Polyglossia for the French punctuation spacing. [20:09] Instead of using \thinspace, for instance, we can create our own space value to use. [20:10] great :) [20:19] godbyk, thanks for everything. I'll continue my tests another day :) [20:19] YoBoY: No problem. Have a nice evening! [20:19] thanks