Login   Register  
PHP Classes
elePHPant
Icontem

File: Suzhou.sor

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Pavel Astakhov  >  Convert Number to Text with Soros  >  Suzhou.sor  >  Download  
File: Suzhou.sor
Role: Auxiliary data
Content type: text/plain
Description: Suzhou language for Soros class
Class: Convert Number to Text with Soros
Spell number with text in multiple languages
Author: By
Last change:
Date: 2013-01-31 03:50
Size: 551 bytes
 

Contents

Class file image Download
# Chinese Suzhou numbers, see Wikipedia
__numbertext__
(\d+)[.,](\d+) $(\1\2::)\n$(:\1:)
(\d+) $(\1::)\n$(:\1:)
(\d+)0:: $(\1::)
(\d+):: $(\1:)

0: 〇
^1: 〡
^2: 〢
^3: 〣
1: 一
2: 二
3: 三
4: 〤
5: 〥
6: 〦
7: 〧
8: 〨
9: 〩
:\d{2}: 拾
:\d{3}: 百
:\d{4}: 千
:\d{5}: 萬
:\d{6}: 拾萬
:\d{7}: 百萬
:\d{8}: 千萬
:\d{9}: 億
:\d{10}: 拾億
:\d{11}: 百億
:\d{12}: 千億

(\d+)0: $(\1:)〇
(\d+)0([1-9]\d*): $(\1:)〇|$(\2:)
^([123])(\d+):	$(\1:)$(\2:)
(\d)(\d+):	$(\1:)|$(\2:)

"\D\D\D (\d[.,\d]*)" $1元

# formal currency: 圆