[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    T8984: Enclosing placeholders by isolation characters
From:       Safa Alfulaij <noreply () phabricator ! kde ! org>
Date:       2018-07-14 13:57:09
Message-ID: 3b3d149f3818407c03233c1fcd32d3e8 () localhost ! localdomain
[Download RAW message or body]

[Attachment #2 (text/plain)]

safaalfulaij added a comment.


  In T8984#151155 <https://phabricator.kde.org/T8984#151155>, @ltoscano wrote:
  
  > Do you mean that those markers are needed anytime there is a mixed string with a \
translated part (which could be LTR or RTL) and a fixed part which has always the \
same direction?  
  
  Yes I mean that. In general, whenever the final string can have both RTL and LTR \
texts, enclosing one of them (non-strong) is a must.  
  In T8984#151155 <https://phabricator.kde.org/T8984#151155>, @ltoscano wrote:
  
  > Can you please show how it would work? Would those placeholders always be added \
to the appropriate string? Wouldn't it be possible to always inject them through i18n \
functions?  
  
  This is just a fast idea: we have `"%s".arg(part)`, we can just enclose that `%s` \
with the markers to be `"FSI%sPDI".arg(part)`, where `FSI` and `PDI` are real Unicode \
characters.  I had to share my initial thoughts about this, but I have no big \
experience with coding, neither with KI18N code database. I can't work on this on the \
near future, but if no one took this task, I'll try my best implementing it myself \
later.

TASK DETAIL
  https://phabricator.kde.org/T8984

To: safaalfulaij
Cc: ltoscano, huftis, aacid, #localization, safaalfulaij, michaldybczak, sdepiets, \
skadinna


[Attachment #3 (text/html)]

<table><tr><td style="">safaalfulaij added a comment.
</td></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/T8984#151155" \
style="background-color: #e7e7e7;  border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">T8984#151155</a>, <a \
href="https://phabricator.kde.org/p/ltoscano/" style="  border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@ltoscano</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><p>Do you mean that those markers are needed \
anytime there is a mixed string with a translated part (which could be LTR or RTL) \
and a fixed part which has always the same direction?</p></div> </blockquote>

<p>Yes I mean that. In general, whenever the final string can have both RTL and LTR \
texts, enclosing one of them (non-strong) is a must.</p>

<blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/T8984#151155" \
style="background-color: #e7e7e7;  border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">T8984#151155</a>, <a \
href="https://phabricator.kde.org/p/ltoscano/" style="  border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@ltoscano</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><p>Can you please show how it would work? Would \
those placeholders always be added to the appropriate string? Wouldn&#039;t it be \
possible to always inject them through i18n functions?</p></div> </blockquote>

<p>This is just a fast idea: we have <tt style="background: #ebebeb; font-size: \
13px;">&quot;%s&quot;.arg(part)</tt>, we can just enclose that <tt style="background: \
#ebebeb; font-size: 13px;">%s</tt> with the markers to be <tt style="background: \
#ebebeb; font-size: 13px;">&quot;FSI%sPDI&quot;.arg(part)</tt>, where <tt \
style="background: #ebebeb; font-size: 13px;">FSI</tt> and <tt style="background: \
#ebebeb; font-size: 13px;">PDI</tt> are real Unicode characters.<br /> I had to share \
my initial thoughts about this, but I have no big experience with coding, neither \
with KI18N code database. I can&#039;t work on this on the near future, but if no one \
took this task, I&#039;ll try my best implementing it myself \
later.</p></div></div><br /><div><strong>TASK DETAIL</strong><div><a \
href="https://phabricator.kde.org/T8984">https://phabricator.kde.org/T8984</a></div></div><br \
/><div><strong>To: </strong>safaalfulaij<br /><strong>Cc: </strong>ltoscano, huftis, \
aacid, Localization, safaalfulaij, michaldybczak, sdepiets, skadinna<br /></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic