プロジェクト

全般

プロフィール

Vote #68451

未完了

Acronyms don't work for Russian language

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
開始日:
2010/10/22
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
23
issue_org_id:
6725
author_id:
22237
assigned_to_id:
0
comments:
9
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
21
ステータス-->[New]

説明

For example:

Россия(Russsia in Russian)

don't works :(


journals

Please don't assign issue to people without them telling you to do so.

Also, please state what you exactly you mean with "don't works".
--------------------------------------------------------------------------------
Acronyms only work with one capital letter followed by some capital letters or numbers. By letter, we mean A to Z... So @Blah(de fi ni tion)@ will produce Blah(de fi ni tion).

In your example, are "Россия" all capital letters in russian alphabet ?
--------------------------------------------------------------------------------
Yes, for example:

en: RUSSIA(Country)
ru: РОССИЯ(Страна)
--------------------------------------------------------------------------------
OK. It won't be easy to implement until we fully support Ruby 1.9, which comes with the right libraries to handle non-ASCII characters.

For the record, everything happens line 459 of @lib/redcloth3.rb@ (maybe we'll be on RedCloth4 when we support Ruby 1.9...). Regex with Unicode selectors like @"РОССИЯ".match(/^\p{Lu}+$/)@ should work on Ruby 1.9+ (PCRE lib is too old on Ruby 1.8.x)
--------------------------------------------------------------------------------
Hello. This is my version of solving problem.

1. Add trigger to wiki_pages table:
<pre>
-- Trigger: alex_wiki_pages_tolower on wiki_pages

-- DROP TRIGGER alex_wiki_pages_tolower ON wiki_pages;

CREATE TRIGGER alex_wiki_pages_tolower
AFTER INSERT OR UPDATE
ON wiki_pages
FOR EACH ROW
EXECUTE PROCEDURE alex_wiki_pages_tolower();
</pre>

2.add trigger function to redmine postgresql database:

<pre>
-- Function: alex_wiki_pages_tolower()

-- DROP FUNCTION alex_wiki_pages_tolower();

CREATE OR REPLACE FUNCTION alex_wiki_pages_tolower()
RETURNS trigger AS
$BODY$
BEGIN
NEW.title=lower(NEW.title);
return NEW;
END;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
ALTER FUNCTION alex_wiki_pages_tolower() OWNER TO postgres;

</pre>

So new pages will created in small leters, even if you taped in capital letters.
--------------------------------------------------------------------------------
Not resolved in Redmine 2.6.10.stable
Will it be resolved in nowadays versions?

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

duplicates,Closed,9665,Wiki format: acronyms in Cyrillic do not work, see example
duplicates,Closed,14765,Acronyms do not work for Russian
blocks,Closed,4050,Ruby 1.9 support

Admin Redmine さんがほぼ2年前に更新

  • カテゴリText formatting_26 にセット
  • 対象バージョンUnplanned backlogs_23 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0