On 2/2/2011 12:00 PM, Itamar O wrote:
Hi,

when editing wiki pages with Hebrew content (right-to-left) I sometimes need to switch language in order to insert a wiki element (e.g. [wiki:"hebrew page name" hebrew link caption]).

You could also adopt the 0.12 (WikiCreole style) link syntax: [[hebrew page name|hebrew link caption]]

Because of right-to-left issues, this messes up the editor and makes it difficult to read and modify the raw wiki. I would like to implement a (very simple) macro-set that allows using alternative strings as aliases for resource-names, so I can specify Hebrew words to insert wiki elements.
I imagine the following conf-section
[aliases]
wiki = comma delimited list of alternative strings for the wiki resource
source = ..
export = ..
etc.
and the macro should replace occurrences of [bla:..] with [wiki:..] if "bla" appears in the list for "wiki".

what would be the simplest way to implement this?

Shouldn't be hard at all, implemented on the model of [intertrac] for example.
But you can already fake this right now by using InterWiki prefixes.
Try adding to your InterMapTxt page e.g.

  bla = /wiki/

or:

  bla = /project/wiki/

(depending on your setup)


-- Christian

--
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to