[Libreoffice-commits] .: 2 commits - src/docsprm.py test/charprops.rtf test/hello.rtf test/parprops.rtf
Miklos Vajna
vmiklos at kemper.freedesktop.org
Sat Nov 10 02:56:17 PST 2012
src/docsprm.py | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++---
test/charprops.rtf | 3 +
test/hello.rtf | 3 +
test/parprops.rtf | 4 ++
4 files changed, 91 insertions(+), 4 deletions(-)
New commits:
commit a3f870a053565fcc0cfa9ac04a7cc0b7466775de
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Sat Nov 10 11:55:03 2012 +0100
add a few test Word files for features which are already dumped
I'm adding these as RTF as that format is much more compact and being a
textural format it's more suitable for git checkin.
diff --git a/test/charprops.rtf b/test/charprops.rtf
new file mode 100644
index 0000000..d0a2a3a
--- /dev/null
+++ b/test/charprops.rtf
@@ -0,0 +1,3 @@
+{\rtf1
+Hello \b world!\par
+}
diff --git a/test/hello.rtf b/test/hello.rtf
new file mode 100644
index 0000000..af7104a
--- /dev/null
+++ b/test/hello.rtf
@@ -0,0 +1,3 @@
+{\rtf1
+Hello world!\par
+}
diff --git a/test/parprops.rtf b/test/parprops.rtf
new file mode 100644
index 0000000..149e819
--- /dev/null
+++ b/test/parprops.rtf
@@ -0,0 +1,4 @@
+{\rtf1
+Hello world!\par
+\qc Second para.\par
+}
commit 878768260ef9eb99fc3900660fb5b42321a174f2
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Sat Nov 10 11:49:22 2012 +0100
add complete char sprm list from doc spec
diff --git a/src/docsprm.py b/src/docsprm.py
index 32e52d8..5255cd6 100755
--- a/src/docsprm.py
+++ b/src/docsprm.py
@@ -95,15 +95,92 @@ parMap = {
0x2471: "sprmPTtwo",
}
-# TODO incomplete
+# see 2.6.1 of the spec
chrMap = {
- 0x4A43: "sprmCHps",
+ 0x0800: "sprmCFRMarkDel",
+ 0x0801: "sprmCFRMarkIns",
+ 0x0802: "sprmCFFldVanish",
+ 0x6A03: "sprmCPicLocation",
+ 0x4804: "sprmCIbstRMark",
+ 0x6805: "sprmCDttmRMark",
+ 0x0806: "sprmCFData",
+ 0x4807: "sprmCIdslRMark",
+ 0x6A09: "sprmCSymbol",
+ 0x080A: "sprmCFOle2",
+ 0x2A0C: "sprmCHighlight",
+ 0x0811: "sprmCFWebHidden",
+ 0x6815: "sprmCRsidProp",
0x6816: "sprmCRsidText",
+ 0x6817: "sprmCRsidRMDel",
+ 0x0818: "sprmCFSpecVanish",
+ 0xC81A: "sprmCFMathPr",
+ 0x4A30: "sprmCIstd",
+ 0xCA31: "sprmCIstdPermute",
+ 0x2A33: "sprmCPlain",
+ 0x2A34: "sprmCKcd",
+ 0x0835: "sprmCFBold",
+ 0x0836: "sprmCFItalic",
+ 0x0837: "sprmCFStrike",
+ 0x0838: "sprmCFOutline",
+ 0x0839: "sprmCFShadow",
+ 0x083A: "sprmCFSmallCaps",
+ 0x083B: "sprmCFCaps",
+ 0x083C: "sprmCFVanish",
+ 0x2A3E: "sprmCKul",
+ 0x8840: "sprmCDxaSpace",
+ 0x2A42: "sprmCIco",
+ 0x4A43: "sprmCHps",
+ 0x4845: "sprmCHpsPos",
+ 0xCA47: "sprmCMajority",
+ 0x2A48: "sprmCIss",
+ 0x484B: "sprmCHpsKern",
+ 0x484E: "sprmCHresi",
0x4A4F: "sprmCRgFtc0",
+ 0x4A50: "sprmCRgFtc1",
0x4A51: "sprmCRgFtc2",
- 0x4A61: "sprmCHpsBi",
- 0x0835: "sprmCFBold",
+ 0x4852: "sprmCCharScale",
+ 0x2A53: "sprmCFDStrike",
+ 0x0854: "sprmCFImprint",
+ 0x0855: "sprmCFSpec",
+ 0x0856: "sprmCFObj",
+ 0xCA57: "sprmCPropRMark90",
+ 0x0858: "sprmCFEmboss",
+ 0x2859: "sprmCSfxText",
+ 0x085A: "sprmCFBiDi",
0x085C: "sprmCFBoldBi",
+ 0x085D: "sprmCFItalicBi",
+ 0x4A5E: "sprmCFtcBi",
+ 0x485F: "sprmCLidBi",
+ 0x4A60: "sprmCIcoBi",
+ 0x4A61: "sprmCHpsBi",
+ 0xCA62: "sprmCDispFldRMark",
+ 0x4863: "sprmCIbstRMarkDel",
+ 0x6864: "sprmCDttmRMarkDel",
+ 0x6865: "sprmCBrc80",
+ 0x4866: "sprmCShd80",
+ 0x4867: "sprmCIdslRMarkDel",
+ 0x0868: "sprmCFUsePgsuSettings",
+ 0x486D: "sprmCRgLid0_80",
+ 0x486E: "sprmCRgLid1_80",
+ 0x286F: "sprmCIdctHint",
+ 0x6870: "sprmCCv",
+ 0xCA71: "sprmCShd",
+ 0xCA72: "sprmCBrc",
+ 0x4873: "sprmCRgLid0",
+ 0x4874: "sprmCRgLid1",
+ 0x0875: "sprmCFNoProof",
+ 0xCA76: "sprmCFitText",
+ 0x6877: "sprmCCvUl",
+ 0xCA78: "sprmCFELayout",
+ 0x2879: "sprmCLbcCRJ",
+ 0x0882: "sprmCFComplexScripts",
+ 0x2A83: "sprmCWall",
+ 0xCA85: "sprmCCnf",
+ 0x2A86: "sprmCNeedFontFixup",
+ 0x6887: "sprmCPbiIBullet",
+ 0x4888: "sprmCPbiGrf",
+ 0xCA89: "sprmCPropRMark",
+ 0x2A90: "sprmCFSdtVanish",
}
# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab:
More information about the Libreoffice-commits
mailing list