<div dir="rtl"><div dir="ltr">hello Andreas<br></div><div dir="ltr">I look to your code and I notice that you still have ScText in storytext but you mentioned in previous email that you finish working on storytext. Your plan was first to separate glyph layout from story text and that need to work on ScText which stores unicode with glyph layout. I start to eliminate usage of ScText but I saw you work on different path.I saw the new class called boxes. Can you please explain what you are trying to do. I will complete your works but I want to understand your aim first.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2015-11-27 15:31 GMT+04:00 Andreas Vox <span dir="ltr"><<a href="mailto:avox@arcor.de" target="_blank">avox@arcor.de</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 .8ex;border-left:1px #ccc solid;border-right:1px #ccc solid;padding-left:1ex;padding-right:1ex"><div link="blue" vlink="purple" lang="DE"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">I committed my changes last night. I don’t know if I’ll be available on IRC, but I will read and answer any email to this list that has “scribusCTL” in it.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Regards,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Andreas<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt"><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> Kunda Loves Scribus [mailto:<a href="mailto:scribus.user@gmail.com" target="_blank">scribus.user@gmail.com</a>] <br><b>Sent:</b> Mittwoch, 25. November 2015 22:42<span class=""><br><b>To:</b> Scribus Development Mailing List<br></span><b>Subject:</b> Re: [scribus-dev] scribusCTL plan<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Tue, Nov 24, 2015 at 12:25 PM, Dawood al-badi <<a href="mailto:dawood.albadi@gmail.com" target="_blank">dawood.albadi@gmail.com</a>> wrote:<u></u><u></u></p><p>Glad to hear from you Mr. Andreas Vox<u></u><u></u></p><p>It will be very helpfull if we synchronize our work. We also do changes in so many places regarding this separation but we didn't finish yet. If you can share your work it will be very helpful for me.<br>Thank you<span style="color:#888888"><br><span>Dawood</span></span><u></u><u></u></p><div><div><div><p class="MsoNormal">On Nov 24, 2015 8:17 PM, "Andreas Vox" <<a href="mailto:avox@arcor.de" target="_blank">avox@arcor.de</a>> wrote:<u></u><u></u></p></div></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><div><div><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Dawood!</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Sorry for keeping quiet for so long.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">I already started on separating StoryText and GlyphLayout. Unfortunately that requires changes at hundreds of other places. So far I changed textlayout.h/cpp, storytext.h/cpp and related classes and adapted pageitem.cpp and pageitem_textframe.cpp. Right now I’m working on pdflib_core.cpp.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Do you think it would help if I commit my (not compiling) code to github?</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Regards,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Andreas</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><u></u><u></u></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt"><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> Dawood al-badi [mailto:<a href="mailto:dawood.albadi@gmail.com" target="_blank">dawood.albadi@gmail.com</a>] <br><b>Sent:</b> Dienstag, 24. November 2015 11:43<br><b>To:</b> Scribus Development Mailing List<br><b>Subject:</b> [scribus-dev] scribusCTL plan</span><u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">Per developers request, I will explain Oman HOST team thoughts.<br><br>Current process of laying out text is as follows:<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">The StoryText class handles characters and glyphs layout. This class stores characters in a member with type of ScText_Shared with basically a QList of ScText, which (despite its name) stores a single character, its styles and associated GlyphLayout. <br>The problem with this is that the order of glyphs is tied to the logical order of characters so we can not apply the bidi algorithm to support right to left languages as it will reorder the text to its visual order. It can not also represent many to one characters to glyphs relationship e.g. ligatures.<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Our Aim:<br><br>Andreas proposal is to separate glyph layout from story text which should make it possible to avoid above limitations. So, we are moving all functions related to glyph layout to the TextLayout class. This currently includes:<br><br>getGlyphs()<br>flags()<br>hasFlag()<br>setFlag()<br>clearFlag()<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">There will be a mapping between glyphs in TextLayout and characters in StoryTextWhich will remove the need for ScText so we can drop it inertially. This will allow for us to change the visual order of the glyphs without affecting the logical order of the characters, which is the prerequisite for CTL support i.e. bidi and shaping. <u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">We are splitting the project into three stages.<u></u><u></u></p></div><div><p class="MsoNormal">1- Separating glyph layout from story text.<u></u><u></u></p></div><div><p class="MsoNormal">2- Refactor or prepare TextLayout class to integrate HarfBuzz and ubidi.<u></u><u></u></p></div><div><p class="MsoNormal">3- Integrate harfbuzz and bidi with scribus.<u></u><u></u></p></div><div><p class="MsoNormal" dir="RTL" style="text-align:right;direction:rtl"><span dir="LTR"> <u></u><u></u></span></p></div><div><p class="MsoNormal">Any feedback will be highly welcomed.<span dir="RTL" lang="AR-SA"><u></u><u></u></span></p></div></div></div></div></div></div></div></blockquote></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Hey everyone, <u></u><u></u></p></div><div><p class="MsoNormal">Lets stop breaking the mailing list rules about not top-posting.<u></u><u></u></p></div><div><p class="MsoNormal">Avox, so Dawood has given the green light to push your changes to github repo<u></u><u></u></p></div><div><p class="MsoNormal">So please do that as soon as you can. <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Also if you can be available to answer their questions since they do have a time-limit for their project. We could actually see the realization of CTL committed to trunk in this lifetime! :)<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Cheers,<u></u><u></u></p></div><div><p class="MsoNormal">/Kunda<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></div></div><br>_______________________________________________<br>
scribus-dev mailing list<br>
<a href="mailto:scribus-dev@lists.scribus.net">scribus-dev@lists.scribus.net</a><br>
<a href="http://lists.scribus.net/mailman/listinfo/scribus-dev" rel="noreferrer" target="_blank">http://lists.scribus.net/mailman/listinfo/scribus-dev</a><br>
<br></blockquote></div><br></div>