I thought that not all attachment types are removed...
---------- Прослеђена порука ----------
Тема: A new functionality Датум: субота 3. октобар 2009. Од: yoosef pooranvary yoosefp@gmail.com За: smolensk@eunet.yu
Dear Mr. Nikola Smolenski I am sending you this letter in order to ask you to add a new functionality to the Poem extension which you created for Mediawiki application. I tried to add this functionality on my own but according to my unfamiliarity with Mediawiki API, I couldn’t go any step further. So, I’ll write down the specefics of this functionality:
Poems in Persian, Arabic and some other languages have rime and two lines are written in one line. Note that I am from Persia (Iran) and I speak Persian, but I try to suggest a general rule for this functionality.
There are many types of poems in Persian language which are mentioned below, together with their rime patterns (They have identical counterparts in Arabic):
Ghazal: A A B A C A D A E A
Ghete: A B C B D B E B
Masnavi: A A B B C C D D E E
Mostazad: _________A ___A _________A ___A _________B ___B _________A ___A _________C ___C _________A ___A _________D ___D _________A ___A
Robaee: A A B A
Dobeyti: A A B A
Or
A A A A
Cheharpareh: A B C B
Tarjiband: A A B A C A D A E E F F G F H F I J K K
Tarkibband: A A B A C A D A E E F F G F H F I J E E
Mosammat: A A A A B C C C C D
Probably it is not important for you to understand the exact type of these poems and as you may have found out that lots of them are like each other.
Code Specification
I ask you to add a “Bilinear” parameter to the Poem extension so if a user wants to type a Persian or Arabic poem, he just types <poem bilinear> above his poem and ends it with </poem> tag. The user will write his poem one line in a line but your code should display two lines in one. (I call this, Pairing Operation!)
Another issue which remains unresolved is that some lines should be one in a line and above each other (you may have noticed them in the above patterns). I suppose that you add an operator like vertical line (|) to your code. If a user puts this character before a line, that line should be displayed in the middle without its pair line. The user should add another vertical line to the next pair line so that line becomes in the middle and exactly under its pair line. Pairing operation should restart from the next line again.
Another request is that you add another parameter with the name of “Gap” so one may use it to choose the size of the blank spaces between pair lines in a line. For example if a user types <poem Bilinear gap=10> your code should put 10 “ ” between all of the pair lines. Of course this parameter should have a default value and I suggest it to be 10.
The user should also be able to choose the place of his poem in the page. He should be able to choose from “Right”, “Center” and “Left”. But the default should be “Center”.
Therefore the final pattern of the poem tag should look like this: <tag-name, bilinear, gap-space, place></tag-name>
Example: <poem bilinear gap=’15’ center> (The poem text) </poem>
Using gap and center should be optional.
An important thing to remember is that in each pair the right one should be aligned to the right and the left one should be aligned to the left.
Please inform me whether you will work on this project or not. Also I have a Mediawiki installed on my computer and I will be happy to test your code at any stage.
Please consider adding my Wikipedia username (Yoosef Pooranvary) in your code if you want. I am waiting to receive your response ASAP.
Truly Yours, Yoosef Pooranvary Wikipedia Contributor yoosefp@gmail.com
-------------------------------------------------------