This is a widget to display wise quotes from virtuous monk. By default it will change a new quote every half hour, but if you want to change next quote just press the next button. It contains 1,085 wise quote from 证严法师 and around 3,300 from 星云法师.
All the quotes are extract from a xml source file, which structure is like below:
<?xml version="1.0" encoding="UTF-8"?> <quotes> <quote from="星云法师"&gt;人生最大的悲哀，是自己对前途没有希望；人生最坏的习惯，是自己对工作没有计划。</quote> <quote from="证严法师"&gt;自造福田，自得福绿。</quote> </quotes>
I collected all the quotes from web http://www.fgs.org.tw/master/masterA/books/delectus/maxim/maxim.aspx then convert it into the xml structure I want. But the problem is the original resource is html, so I need to do some conversion in this case.
Steps I took:
- Use notepad++ to open the file I have save.
- Remove all the new line by replace \r\r with \r use the extended character
- Insert <quote from=”证严法师”> in front of each quote again by find & replace ^
- Find & replace $ one by one (cannot replace all the app will hang) for insert the close tag – </quote>
- Go to google translate change to simplified Chinese where I preferred here.
- Fail to view all when it is long text.
You can find it on Google Playstore now