今日の名変換IME
誤記暴徒のことですが、
(ごきぼうとのことですが、)
iPhone came to China
先月末、ようやく中国に、本物の iPhone が発売されたようです。
※類似品はブラックマーケットにたんまりあるようですが。
http://www.washingtonpost.com/wp-dyn/content/article/2009/10/30/AR2009103000092.html
ちなみに、料金は次のとおり。
Unicom's prices range from 4,999 yuan ($730) to 6,999 yuan ($1,025) for the high-end, 32-gigabyte iPhone 3GS. That is 20 percent above the 5,700 yuan ($835) charged by merchants at Chinese street markets for a 3GS with WiFi.
価格帯は、だいたい66,000円〜93,000円とのこと。そこそこ裕福な人でないと買えなさそうです。
発売は日本だとソフトバンクが行っていますが、中国では China Unicom が発売するようです。中国1位の China Mobile(携帯数5億800万台)が、当初、有力視されていたそうですが、最終的に China Unicom (携帯数1億4800台)が獲得したそうです。
型宣言
sint4 は、4byte サイズの signed integer、uint4 は 4byte の unsigned integer のこと。
c のコードで書けば次の通り。
typedef signed long sint4; // signed 4-byte integral value typedef signed short sint2; // signed 4-byte integral value typedef unsigned long uint4; // unsigned 4-byte integral value typedef unsigned short uint2;
Current User Stream
Current User Stream とは、最後に編集したユーザの情報が管理されている。ユーザ情報は1人分以上が含まれている。つまり、Aさんが作成した後、Bさんが編集したなら、Aさん、Bさんのユーザ情報が含まれることになる。
このユーザ情報の構造体は次の通り。
struct PSR_UserEditAtom {
sint4 lastSlideID; // slideID of last viewed slide
// 最後に参照したスライドID
uint4 version; // This is major/minor/build which did the edit
// 編集時のバージョン情報(メジャー/マイナー/ビルド)
uint4 offsetLastEdit; // File offset of last edit
// 最後に編集した際のファイルオフセット
uint4 offsetPersistDirectory; // Offset to PersistPtrs for this edit.
//
uint4 documentRef; // reference to document atom
// ドキュメントアトムへの参照用
uint4 maxPersistWritten; // Addr of last persist ref written to the file
// (max seen so far).
sint2 lastViewType; // enum view type
};
PPTファイルの概要
解説書の File Format Overview には、次のように記載されている。
File Format Overview
PowerPoint 97 files are OLE DocObject files consisting of the following streams:
- Current User - Keeps the name of the user who last opened the presentation.
- PowerPoint Document - Keeps all of the information about a PowerPoint presentation. This document explains its layout and contents.
- Pictures (Optional) - Contains data about the pictures (metafiles, PNG, JPG, etc) contained in a PowerPoint presentation.
- Summary Information and DocumentSummaryInformation (Optional) - Keeps statistics about the document, following a Microsoft Office standard.
PowerPoint 97 ファイルは、次のもので構成されている OLE DocObject ファイルである。
- カレントユーザ - 最後にファイルを開いたユーザの名前情報
- PowerPoint ドキュメント - PowerPoint プレゼンテーションに関わる全ての情報。レイアウトとコンテンツが含まれている。
- 画像(オプション) - 画像データ(メタファイル、PNG、JPG など)
- サマリ情報、DocumentSummaryInformation(オプション) - Microsoft Office Standard 以降では、ドキュメントの数値データが含まれる。
PowerPoint フォーマットを読んでみる
去年、Microsoft から MS Office のファイルフォーマットの仕様が公開された。
http://www.microsoft.com/interop/docs/officebinaryformats.mspx
このうち、PowerPoint のファイル形式、ppt がどのような構成になっているか、興味がわいたので、少しずつ、読み進めて行きたいと思う。
OpenOffice.org の C++ソースファイル数
DEV300_m42(OpenOffice.org 3.0.1)の 2009/3/10版で、10,758 だった。
で、コード総数は、6,247,574だった。