View Issue Details

IDProjectCategoryView StatusLast Update
0000099WackoWikiformatterpublic2009-08-19 09:38
Reporteradministrator Assigned ToTann San  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.2 
Target Version4.3.rcFixed in Version4.3.rc 
Summary0000099: Ukrainian language for formatter typografica
Descriptionpls. chk., see attachment

Posted: the transformation of character "'" inside words in Ukrainian apostrophe.
Changed: Support words with Ukrainian letters / symbols (ґҐєЄіІїЇ’') with the placement of quotation marks ("лапок").
Additional Informationold ID: 0001247
 14-03-2005 00:08 kingoleg
TagsNo tags attached.
Attached Files
diff.txt (2,901 bytes)   
Index: formatters/classes/typografica.php
===================================================================
--- formatters/classes/typografica.php	(revision 485)
+++ formatters/classes/typografica.php	(working copy)
@@ -61,6 +61,7 @@
   var $glueright = array( "���\.", "���\.", "�\.�\.", "���\." );
 
   var $settings = array ( "inches" => 1, // ������������� ��� � "
+  						  "apostroph" => 1, // ������������� ����������
                           "laquo" => 1,  // �����-�����
                           "farlaquo" => 0,  // �����-����� �� ���� (����� "����-����")
                           "quotes" => 1, // �����-���������� �����
@@ -229,6 +230,9 @@
     // 0. ��� � �������
     if ($this->settings["inches"])
       $data = preg_replace( "/(?<=\s)(([0-9]{1,2}([\.,][0-9]{1,2})?))\"/i", "\\1&quot;", $data );
+    // 0a. ��������
+    if ($this->settings["apostroph"])
+      $data = preg_replace( "/([\s\"][~0-9�����������'A-Za-z�-��-�\-:\/\.]+)'([~�����������������][~0-9�����������'A-Za-z�-��-�\-:\/\.]+[\s\.,:;\)<=\"])/i", "\\1�\\2", $data );
     // 1. �����
     if ($this->settings["quotes"])
     {
@@ -246,17 +250,17 @@
     if ($this->settings["laquo"])
     {
       $data = preg_replace( "/\"\"/i", "&quot;&quot;", $data );
-      $data = preg_replace( "/(^|\s|\201|\200|>|\()\"((\201|\200)*[~0-9��A-Za-z�-��-�\-:\/\.])/i", "\\1&laquo;\\2", $data );
+      $data = preg_replace( "/(^|\s|\201|\200|>|\()\"((\201|\200)*[~0-9�����������'A-Za-z�-��-�\-:\/\.])/i", "\\1&laquo;\\2", $data );
       // nb: wacko only regexp follows:
-      $data = preg_replace( "/(^|\s|\201|\200|>|\()\"((\201|\200|\/&nbsp;|\/|\!)*[~0-9��A-Za-z�-��-�\-:\/\.])/i", "\\1&laquo;\\2", $data );
+      $data = preg_replace( "/(^|\s|\201|\200|>|\()\"((\201|\200|\/&nbsp;|\/|\!)*[~0-9���������'A-Za-z�-��-�\-:\/\.])/i", "\\1&laquo;\\2", $data );
       $_data = "\"\"";
       while ($_data != $data)
       {  
         $_data = $data;
-        $data = preg_replace( "/(\&laquo\;([^\"]*)[��A-Za-z�-��-�0-9\.\-:\/](\201|\200)*)\"/si", "\\1&raquo;", $data );
+        $data = preg_replace( "/(\&laquo\;([^\"]*)[�����������'A-Za-z�-��-�0-9\.\-:\/](\201|\200)*)\"/si", "\\1&raquo;", $data );
         // nb: wacko only regexps follows:
-        $data = preg_replace( "/(\&laquo\;([^\"]*)[��A-Za-z�-��-�0-9\.\-:\/](\201|\200)*\?(\201|\200)*)\"/si", "\\1&raquo;", $data );
-        $data = preg_replace( "/(\&laquo\;([^\"]*)[��A-Za-z�-��-�0-9\.\-:\/](\201|\200|\/|\!)*)\"/si", "\\1&raquo;", $data );
+        $data = preg_replace( "/(\&laquo\;([^\"]*)[�����������'A-Za-z�-��-�0-9\.\-:\/](\201|\200)*\?(\201|\200)*)\"/si", "\\1&raquo;", $data );
+        $data = preg_replace( "/(\&laquo\;([^\"]*)[�����������'A-Za-z�-��-�0-9\.\-:\/](\201|\200|\/|\!)*)\"/si", "\\1&raquo;", $data );
       }
     }
       // 2a. ����� �� FAR manager

diff.txt (2,901 bytes)   

Relationships

related to 0000181 resolvedadministrator Formatter fails under some circumstances and produces a blank page 
related to 0000059 resolvedadministrator Bad links in header after language in user profile changed to polish. 

Activities

Tann San

2008-07-22 23:05

manager   ~0000429

Merged in Freemans typografica updates. This section is waaaay over my head so I just used blind faith that it was ok!

Issue History

Date Modified Username Field Change
2007-10-08 19:00 administrator New Issue
2007-10-08 19:00 administrator File Added: diff.txt
2007-10-08 19:00 administrator Legacy => NPJ
2007-10-26 06:27 administrator Description Updated
2008-04-03 00:41 administrator Assigned To => Tann San
2008-04-03 00:41 administrator Status new => acknowledged
2008-06-21 19:12 administrator Relationship added related to 0000181
2008-06-21 19:35 administrator Summary formatters/classes/typografica.php => Ukrainian language for formatter typografica
2008-06-21 19:35 administrator Description Updated
2008-07-22 23:05 Tann San Note Added: 0000429
2008-07-22 23:05 Tann San Status acknowledged => resolved
2008-07-22 23:05 Tann San Fixed in Version => 5.0.0
2008-07-22 23:05 Tann San Resolution open => fixed
2008-08-04 10:57 administrator Relationship added related to 0000059
2009-08-19 09:25 administrator Fixed in Version 5.0.0 => 4.3.rc
2009-08-19 09:38 administrator Target Version => 4.3.rc
2010-03-08 10:13 administrator Category Formatter => formatter