← Back to team overview

openlp-core team mailing list archive

[Bug 1157176] [NEW] Support for "not breaking lines between hangul characters"

 

Public bug reported:

From: http://support.openlp.org/issues/1830

Now that I have read the msdn.microsoft.com article "Dividing Lines of
Text in Korean", I don't think there is anything wrong with the way it
currently is. That article says that "some applications allow the user
to choose whether or not to break lines between hangul characters". And
the following list with line break prohibits only has rules for
characters such as different starting ( and ending ) parenthesis and a
very special character A3DC, which never can start or end a line. And
that is all. So what ernest is asking is to add support for "not
breaking lines between hangul characters", e.g "the English way" of
breaking lines. This is mere matter of taste and not a definite mistake
(according to that mistake). Therefore I'll mark this as a feature
request.

Normally getting this would be as simple as adding word-break:keep-all;
CSS property, but unfortunately (due to webkit's bug
https://bugs.webkit.org/show_bug.cgi?id=43917) this does not work for
us.

As a workaround it is possible to add a zero-width-no-break-space (ZWNBSP: http://en.wikipedia.org/wiki/Zero-width_non-breaking_space ) between any two non-space characters (or better yet a WORD JOINER character U+2060 as the wiki suggests:
print re.sub(r'(?<=[^ ])(?=[^ ])', '\ufeff', 'hello my dear friend')

** Affects: openlp
     Importance: Wishlist
         Status: New

** Changed in: openlp
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1157176

Title:
  Support for "not breaking lines between hangul characters"

Status in OpenLP - Worship Presentation Software:
  New

Bug description:
  From: http://support.openlp.org/issues/1830

  Now that I have read the msdn.microsoft.com article "Dividing Lines of
  Text in Korean", I don't think there is anything wrong with the way it
  currently is. That article says that "some applications allow the user
  to choose whether or not to break lines between hangul characters".
  And the following list with line break prohibits only has rules for
  characters such as different starting ( and ending ) parenthesis and a
  very special character A3DC, which never can start or end a line. And
  that is all. So what ernest is asking is to add support for "not
  breaking lines between hangul characters", e.g "the English way" of
  breaking lines. This is mere matter of taste and not a definite
  mistake (according to that mistake). Therefore I'll mark this as a
  feature request.

  Normally getting this would be as simple as adding word-break:keep-
  all; CSS property, but unfortunately (due to webkit's bug
  https://bugs.webkit.org/show_bug.cgi?id=43917) this does not work for
  us.

  As a workaround it is possible to add a zero-width-no-break-space (ZWNBSP: http://en.wikipedia.org/wiki/Zero-width_non-breaking_space ) between any two non-space characters (or better yet a WORD JOINER character U+2060 as the wiki suggests:
  print re.sub(r'(?<=[^ ])(?=[^ ])', '\ufeff', 'hello my dear friend')

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1157176/+subscriptions


Follow ups

References