[ooo-build-commit] scratch/mso-dumper
Kohei Yoshida
kohei at kemper.freedesktop.org
Thu Oct 8 21:57:38 PDT 2009
scratch/mso-dumper/src/xlsrecord.py | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
New commits:
commit 3c52b9e5fbec8f506cf82e73ae10978b32703722
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Fri Oct 9 00:56:11 2009 -0400
[xls-dump] Fixed handler for PHONETIC record.
* scratch/mso-dumper/src/xlsrecord.py: I was reading the bytes
backward. No wonder the old interpretation didn't make sense
at all.
diff --git a/scratch/mso-dumper/src/xlsrecord.py b/scratch/mso-dumper/src/xlsrecord.py
index 3b3e5e1..b677d44 100644
--- a/scratch/mso-dumper/src/xlsrecord.py
+++ b/scratch/mso-dumper/src/xlsrecord.py
@@ -818,13 +818,10 @@ class PhoneticInfo(BaseRecordHandler):
flags = self.readUnsignedInt(1)
# flags: 0 0 0 0 0 0 0 0
- # | A | B | unused|
+ # | unused| B | A |
- flags /= 16 # shift 4 bits to the right
- # flags: 0 0 0 0 0 0 0 0
- # |unused | A | B |
- phType = (flags/4) & 0x03
- alignType = flags & 0x03
+ phType = (flags) & 0x03
+ alignType = (flags/4) & 0x03
self.appendLine("phonetic type: %s"%PhoneticInfo.getPhoneticType(phType))
self.appendLine("alignment: %s"%PhoneticInfo.getAlignType(alignType))
More information about the ooo-build-commit
mailing list