View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000099 | WackoWiki | formatter | public | 2007-10-08 19:00 | 2009-08-19 09:38 |
| Reporter | administrator | Assigned To | Tann San | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 4.2 | ||||
| Target Version | 4.3.rc | Fixed in Version | 4.3.rc | ||
| Summary | 0000099: Ukrainian language for formatter typografica | ||||
| Description | pls. 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 Information | old ID: 0001247 14-03-2005 00:08 kingoleg | ||||
| Tags | No 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"", $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", """", $data );
- $data = preg_replace( "/(^|\s|\201|\200|>|\()\"((\201|\200)*[~0-9��A-Za-z�-��-�\-:\/\.])/i", "\\1«\\2", $data );
+ $data = preg_replace( "/(^|\s|\201|\200|>|\()\"((\201|\200)*[~0-9�����������'A-Za-z�-��-�\-:\/\.])/i", "\\1«\\2", $data );
// nb: wacko only regexp follows:
- $data = preg_replace( "/(^|\s|\201|\200|>|\()\"((\201|\200|\/ |\/|\!)*[~0-9��A-Za-z�-��-�\-:\/\.])/i", "\\1«\\2", $data );
+ $data = preg_replace( "/(^|\s|\201|\200|>|\()\"((\201|\200|\/ |\/|\!)*[~0-9���������'A-Za-z�-��-�\-:\/\.])/i", "\\1«\\2", $data );
$_data = "\"\"";
while ($_data != $data)
{
$_data = $data;
- $data = preg_replace( "/(\«\;([^\"]*)[��A-Za-z�-��-�0-9\.\-:\/](\201|\200)*)\"/si", "\\1»", $data );
+ $data = preg_replace( "/(\«\;([^\"]*)[�����������'A-Za-z�-��-�0-9\.\-:\/](\201|\200)*)\"/si", "\\1»", $data );
// nb: wacko only regexps follows:
- $data = preg_replace( "/(\«\;([^\"]*)[��A-Za-z�-��-�0-9\.\-:\/](\201|\200)*\?(\201|\200)*)\"/si", "\\1»", $data );
- $data = preg_replace( "/(\«\;([^\"]*)[��A-Za-z�-��-�0-9\.\-:\/](\201|\200|\/|\!)*)\"/si", "\\1»", $data );
+ $data = preg_replace( "/(\«\;([^\"]*)[�����������'A-Za-z�-��-�0-9\.\-:\/](\201|\200)*\?(\201|\200)*)\"/si", "\\1»", $data );
+ $data = preg_replace( "/(\«\;([^\"]*)[�����������'A-Za-z�-��-�0-9\.\-:\/](\201|\200|\/|\!)*)\"/si", "\\1»", $data );
}
}
// 2a. ����� �� FAR manager
| ||||
| related to | 0000181 | resolved | administrator | Formatter fails under some circumstances and produces a blank page |
| related to | 0000059 | resolved | administrator | Bad links in header after language in user profile changed to polish. |
| 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 |