http://openoffice.org/bugzilla/show_bug.cgi?id=90681





--- Comment #5 from sungkhum <[email protected]>  2011-04-07 03:51:18 ---
In the mean time, here is a work-around using a macro that will replace all
Latin numbers with Khmer numbers (just make sure in the "Edit Index/Table" you
have unchecked "Protect against manual changes").  This macro will replace all
Latin numbers in a document to Khmer numbers - it needs to be run every time
you update an index/table.

CODE:

Sub KhmerNumbers
oDoc = thiscomponent
aFind = Array("1", "2","3" ,"4", "5" ,"6" ,"7", "8", "9", "0")
aReplace = Array("១", "២", "៣", "៤", "៥", "៦", "៧", "៨", "៩", "០")
aRayCount = 0
FandR = oDoc.Selection.createReplaceDescriptor
FandR.SearchCaseSensitive = true
FandR.SearchRegularExpression = true
While aRayCount <= uBound(aFind)
FandR.setSearchString(aFind(aRayCount))
FandR.setReplaceString(aReplace(aRayCount))
aRayCount = aRayCount + 1
oDoc.ReplaceAll(FandR)
Wend
End Sub

To use this as a macro see this documentation
http://wiki.services.openoffice.org/wiki/Documentation/OOoAuthors_User_Manual/Getting_Started/Creating_a_simple_macro
And instead of recording a macro, create a new macro and paste the above code
and save.

-- 
Configure bugmail: http://openoffice.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification
from Bugzilla. Please log into the website and enter your comments.
-----------------------------------------------------------------------
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help
--
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help

Reply via email to