Translation:Stroke Styles

From IDMLWiki

Jump to: navigation, search

Contents

10.6.2 線種

InDesignドキュメントで使われる線種は、IDMLパッケージではGraphics.xmlファイルの<StrokeStyle>、<DashedStrokeStyle>、<DottedStrokeStyle>および<StripedStrokeStyle>エレメントで表されます。

スキーマの例64 StrokeStyle
  1. StrokeStyle_Object = element StrokeStyle{ 
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string }
  4. }
表70 属性としてのStrokeStyleプロパティ
名前 必須 説明
Name string 線種の名前
IDMLの例62 デフォルトのStrokeStyle
  1. <StrokeStyle Self="StrokeStyle\ Triple_Stroke" Name="$ID/Triple_Stroke"/>
  2. <StrokeStyle Self="StrokeStyle\ ThickThinThick" Name="$ID/ThickThinThick"/>
  3. <StrokeStyle Self="StrokeStyle\ ThinThickThin" Name="$ID/ThinThickThin"/>
  4. <StrokeStyle Self="StrokeStyle\ ThickThick" Name="$ID/ThickThick"/>
  5. <StrokeStyle Self="StrokeStyle\ ThickThin" Name="$ID/ThickThin"/>
  6. <StrokeStyle Self="StrokeStyle\ ThinThick" Name="$ID/ThinThick"/>
  7. <StrokeStyle Self="StrokeStyle\ ThinThin" Name="$ID/ThinThin"/>
  8. <StrokeStyle Self="StrokeStyle\ Japanese Dots" Name="$ID/Japanese Dots"/>
  9. <StrokeStyle Self="StrokeStyle\ White Diamond" Name="$ID/White Diamond"/>
  10. <StrokeStyle Self="StrokeStyle\ Left Slant Hash" Name="$ID/Left Slant Hash"/>
  11. <StrokeStyle Self="StrokeStyle\ Right Slant Hash" Name="$ID/Right Slant Hash"/>
  12. <StrokeStyle Self="StrokeStyle\ Straight Hash" Name="$ID/Straight Hash"/>
  13. <StrokeStyle Self="StrokeStyle\ Wavy" Name="$ID/Wavy"/>
  14. <StrokeStyle Self="StrokeStyle\ Canned Dotted" Name="$ID/Canned Dotted"/>
  15. <StrokeStyle Self="StrokeStyle\ Canned Dashed 3x2" Name="$ID/Canned Dashed 3x2"/>
  16. <StrokeStyle Self="StrokeStyle\ Canned Dashed 4x4" Name="$ID/Canned Dashed 4x4"/>
  17. <StrokeStyle Self="StrokeStyle\ Dashed" Name="$ID/Dashed"/>
  18. <StrokeStyle Self="StrokeStyle\ Solid" Name="$ID/Solid"/>

<StrokeStyle>エレメントには、デフォルトの線種のみが表されます。すべてのカスタム線種は<DashedStrokeStyle>、<DottedStrokeStyle>または<StripedStrokeStyle>エレメントで表されます。上記のデフォルトの線種名には、すべて接頭辞「$ID」がついており、インストールされたアプリケーションのロケールによって、線が変わるということです。デフォルトの線種については、InDesignのオンラインヘルプを参照してください。

図50 InDesignの線種

Image:Fig050.png

スキーマの例65 DashedStrokeStyle
  1. DashedStrokeStyle_Object = element DashedStrokeStyle{ 
  2.   attribute Self { xsd:string },
  3.   attribute DashArray{  list { xsd:double * } }?,
  4.   attribute StrokeCornerAdjustment{  StrokeCornerAdjustment_EnumValue }?,
  5.   attribute EndCap{  EndCap_EnumValue }?,
  6.   attribute Name { xsd:string }
  7. }
表71 属性としてのDashedStrokeStyle
名前 必須 説明
DashArray doubles(スペース区切りのリスト) 線分の線と間隔のパターン。[線の長さ1, 間隔1, 線の長さ2, 間隔2,...]の形式で、ポイントで指定。(値は10まで)このパターンがパスに沿って繰り返される。線と間隔の正確な長さは、StrokeCornerAdjustment属性の値に影響される
EndCap EndCap_EnumValue 線端の形状。ButtEndCap、RoundEndCapまたはProjectingEndCap。これらの線端についてはInDesignのオンラインヘルプを参照
Name string 線分の名前
StrokeCornerAdjustment StrokeCornerAdjustment_EnumValue 角。None、DashesまたはDashesAndGaps。角の設定についてはInDesignのオンラインヘルプを参照
IDMLの例63 DashedStrokeStyle
  1. <DashedStrokeStyle Self="DashedStrokeStyle\ cExampleDashedStroke" DashArray=" 6 3 2 7 3 3" StrokeCornerAdjustment=" DashesAndGaps" EndCap=" ButtEndCap" Name="ExampleDashedStroke"/>
図51 線分

Image:Fig051.png

スキーマの例66 DottedStrokeStyle
  1. DottedStrokeStyle_Object = element DottedStrokeStyle{ 
  2.   attribute Self { xsd:string },
  3.   attribute DotArray{  list { xsd:double * } }?,
  4.   attribute StrokeCornerAdjustment{  StrokeCornerAdjustment_EnumValue }?,
  5.   attribute Name { xsd:string }
  6. }
表72 属性としてのDottedStrokeStyleプロパティ
名前 必須 説明
DotArray doubles(スペース区切りのリスト) パターンの長さ。ポイントで指定。(点の直径は線幅による)このパターンがパスに沿って繰り返される。点の間隔の正確な長さは、StrokeCornerAdjustment属性の値に影響される
Name string 点線の名前
StrokeCornerAdjustment StrokeCornerAdjustment_EnumValue 角。None、DashesまたはDashesAndGaps。角の設定についてはInDesignのオンラインヘルプを参照
IDMLの例64 DottedStrokeStyle
  1. <DottedStrokeStyle Self="DottedStrokeStyle\ cExampleDottedStoke" DotArray=" 5.554054054054054 6.445945945945946" StrokeCornerAdjustment=" Gaps" Name="ExampleDottedStoke"/>
図52 点線

Image:Fig052.png

スキーマの例67 StripedStrokeStyle
  1. StripedStrokeStyle_Object = element StripedStrokeStyle{ 
  2.   attribute Self { xsd:string },
  3.   attribute StripeArray{  list { xsd:double * } }?,
  4.   attribute Name { xsd:string }
  5. }
表73 属性としてのStripedStrokeStyleプロパティ
名前 必須 説明
Name string ストライプの名前
StripeArray double(スペース区切りのリスト) ストライプの幅と位置のパターン。各ストライプは、始点1、終点1、始点2、終点2の形式で始点と終点の組を、線幅のパーセント(0-100)で設定する。それぞれの値は、その前の値よりも大きくなければならない
IDMLの例65 StripedStrokeStyle
  1. <StripedStrokeStyle Self="StripedStrokeStyle\ cExampleStripedStroke" StripeArray=" 25 75" Name="ExampleStripedStroke"/>
図53 ストライプ

Image:Fig053.png

Personal tools