Vote #68451
未完了Acronyms don't work for Russian language
0%
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 さんが11ヶ月前に更新
- カテゴリ を Text formatting_26 にセット
- 対象バージョン を Unplanned backlogs_23 にセット