<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 24, 2015 at 12:25 PM, Dawood al-badi <span dir="ltr"><<a href="mailto:dawood.albadi@gmail.com" target="_blank">dawood.albadi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Glad to hear from you Mr. Andreas Vox</p>
<p dir="ltr">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 class="HOEnZb"><font color="#888888"><br>
Dawood</font></span></p>
<div class="gmail_quote"><div><div class="h5">On Nov 24, 2015 8:17 PM, "Andreas Vox" <<a href="mailto:avox@arcor.de" target="_blank">avox@arcor.de</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div lang="DE" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Dawood!<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 lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Sorry for keeping quiet for so long.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">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.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Do you think it would help if I commit my (not compiling) code to github?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Regards,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Andreas<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><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 lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> 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<u></u><u></u></span></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.</p></div></div></div></div></div></div></div></blockquote></div></blockquote><div><br></div><div>Hey everyone, </div><div>Lets stop breaking the mailing list rules about not top-posting.<br></div><div>Avox, so Dawood has given the green light to push your changes to github repo</div><div>So please do that as soon as you can. </div><div><br></div><div>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! :)</div><div><br></div><div>Cheers,</div><div>/Kunda</div><div><br></div></div><br></div></div>