Advertisement
ffilz

mymap.style

Oct 31st, 2016
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 7.14 KB | None | 0 0
  1. # white-on-black map style file for sec2pdf
  2.  
  3. # NOTES:
  4. #     1) the -g option won't work well (if at all) with
  5. #        non-standard style definitions!
  6. #     2) color specifications in MSEC files override
  7. #        anything here.
  8.  
  9.  
  10. # How does this work?
  11. #     1) There are 8 different types of data currently used
  12. #        (pos, fill, stroke, line, font, size, align, and radius).
  13. #     2) All the drawing routines call setstyles($stylename,$dontscale),
  14. #        which grovels over the data in this file, looking for a match.
  15. #     3) If $dontscale is 1, then pos, line, size, and radius will be
  16. #        measured in points (1/72 inch), otherwise they'll be scaled to
  17. #        be percentages of the radius of a hex, with (0,0) at the center
  18. #        of the hex. A circle of radius 100 would then touch all six
  19. #        vertices.
  20. #     4) setstyles() searches through the style's "parents" to implement
  21. #        simple inheritance.
  22. #     5) If it can't find a matching value, it falls back to default-$type
  23. #     6) A value of "none" is valid for fill and stroke.
  24. #     7) A special value of "off" means that printing of this data
  25. #        should be suppressed. So, if you wanted to turn off the
  26. #        printing of UWP above system name, "system-uwp off" would
  27. #        do it. Note that "system off" will turn off everything under
  28. #        system-*.
  29. #
  30. #     For example, if the style name is "system-name-highpop-font",
  31. #     the first matching key in the following list will be used:
  32. #        system-name-highpop-font
  33. #        system-name-font
  34. #        system-font
  35. #        default-font
  36.  
  37. # What colors can you use?
  38. #     All of them, specified in a ridiculous number of
  39. #     different ways:
  40. #     1) Shades of gray from black (0) to white (1)
  41. #     2) RGB in hex digits, as #rgb, #rrggbb, #rrrgggbbb, or #rrrrggggbbbb
  42. #     3) CMYK in hex, as %cmyk, %ccmmyykk, %cccmmmyyykkk, or %ccccmmmmyyyykkkk
  43. #     4) HSL in hex, as &hsl, &hhssll, &hhhssslll, or &hhhhssssllll
  44. #     5) HSV in hex, as !hsv, !hhssvv, !hhhsssvvv, or !hhhhssssvvvv
  45. #     6) A long list of named colors. So long, in fact, that I've moved
  46. #        it to a separate comment all the way at the end of this file.
  47.  
  48. # default settings that everything inherits
  49. #
  50. default-pos 0 0
  51. default-fill white
  52. default-stroke black
  53. default-line 2.5
  54. default-font Helvetica
  55. default-size 18
  56. default-align center
  57. default-radius 25
  58.  
  59. #page headers
  60. #these should be unscaled
  61. #(not fully integrated in the code yet)
  62. #
  63. map-text-fill black
  64. map-text-sector-align left
  65. #map-text-section-align right
  66. map-text-section off
  67.  
  68. #subsector division lines
  69. #
  70. map-dividers-stroke 0.6
  71. map-dividers-line 2
  72.  
  73. #exterior map border
  74. #
  75. map-border-stroke black
  76. map-border-fill none
  77. map-border-line 3
  78.  
  79. #background of map
  80. #
  81. map-background-fill white
  82. map-background-stroke none
  83.  
  84. #xboat/trade routes (stroke can be overridden in MSEC file)
  85. #
  86. map-route-line 10
  87. #map-route-stroke 0.8
  88. map-route-stroke 0.6
  89.  
  90. #region (filled) and border (stroked) directives from MSEC file
  91. #
  92. map-region-line 9
  93. map-region-filled-fill darkgray
  94. map-region-filled-stroke none
  95. map-region-stroked-fill none
  96. map-region-stroked-stroke green
  97.  
  98. #this feature is currently a bit fragile in the code, so all of
  99. #the keys *must* be present, and the first two must *not* be
  100. #changed.
  101. #
  102. map-label-align center
  103. map-label-pos 0 12
  104. #map-label-fill lightblue
  105. map-label-fill blue
  106. map-label-large-size 80
  107. map-label-size 65
  108. map-label-small-size 50
  109.  
  110. #map hexes
  111. #
  112. hex-line 1.5
  113. #NOTE: adding a fill here will clobber filled regions, which are drawn first.
  114. hex-fill none
  115. hex-stroke 0.4
  116.  
  117. #map hex labels
  118. #
  119. hex-label-font Helvetica
  120. hex-label-fill black
  121. hex-label-size 29
  122. hex-label-pos 0 74
  123.  
  124. #system-level defaults
  125. #
  126. system-fill black
  127. system-size 34
  128.  
  129. #system name
  130. #
  131. system-name-pos 0 -94
  132. system-name-highpop-font Helvetica-Bold
  133.  
  134. #sample of how to disable printing specific data
  135. system-uwp on
  136.  
  137. #UWP for systems that have names
  138. #
  139. system-uwp-font Helvetica
  140. system-uwp-size 25
  141. system-uwp-pos 0 -65
  142.  
  143. #used when there's no name for a system, or -u is used
  144. #
  145. system-noname-font Helvetica
  146. system-noname-size 30
  147. system-noname-uwp-pos 0 -67
  148. system-noname-pbg-pos 0 -93
  149.  
  150. #mainworld circle
  151. #
  152. system-world on
  153. system-world-radius 25
  154. system-world-stroke none
  155. system-world-iswater-fill blue
  156. system-world-haswater-fill powderblue
  157. system-world-nowater-fill orange
  158. system-world-nowater-radius 25
  159. system-world-nowater-stroke none
  160.  
  161. #mainworld is a belt...
  162. #(radius is used to generate several different circles)
  163. #
  164. system-belt-stroke none
  165. system-belt-radius 4
  166.  
  167. #system base code
  168. #
  169. system-base-pos -26 26
  170. system-base-align right
  171.  
  172. #system-starport-pos 0 41
  173. #system-starport-pos 0 0
  174. #system-starport-size 60
  175. system-starport-pos 0 25
  176. system-starport-size 60
  177.  
  178. #circle representing presence of gas giants
  179. #
  180. system-gasgiant-pos 36 36
  181. system-gasgiant-stroke none
  182. system-gasgiant-radius 10
  183.  
  184. #allegiance code
  185. #
  186. system-ally on
  187. system-ally-size 25
  188. system-ally-align right
  189. system-ally-pos 85 -43
  190. system-ally-fill red
  191.  
  192. #trade codes
  193. #
  194. system-trade on
  195. system-trade-size 25
  196. system-trade-align center
  197. system-trade-pos 0 -43
  198.  
  199. #amber zones
  200. #
  201. #system-amber-radius 70
  202. #system-amber-stroke orange
  203. #system-amber-fill none
  204. #system-amber-line 5
  205.  
  206. #red zones
  207. #
  208. #system-red-radius 70
  209. #system-red-stroke red
  210. #system-red-fill none
  211. #system-red-line 5
  212.  
  213. # Named color list:
  214. #       aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque,
  215. #       black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue,
  216. #       chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan,
  217. #       darkblue, darkcyan, darkgoldenrod, darkgray, darkgreen, darkgrey,
  218. #       darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid,
  219. #       darkred, darksalmon, darkseagreen, darkslateblue, darkslategray,
  220. #       darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue,
  221. #       dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen,
  222. #       fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green,
  223. #       greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki,
  224. #       lavender, lavenderblush, lawngreen, lemonchiffon, lightblue,
  225. #       lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgreen,
  226. #       lightgrey, lightpink, lightsalmon, lightseagreen, lightskyblue,
  227. #       lightslategray, lightslategrey, lightsteelblue, lightyellow, lime,
  228. #       limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue,
  229. #       mediumorchid, mediumpurple, mediumseagreen, mediumslateblue,
  230. #       mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue,
  231. #       mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive,
  232. #       olivedrab, orange, orangered, orchid, palegoldenrod, palegreen,
  233. #       paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum,
  234. #       powderblue, purple, red, rosybrown, royalblue, saddlebrown, salmon,
  235. #       sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue,
  236. #       slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle,
  237. #       tomato, turquoise, violet, wheat, white, whitesmoke, yellow,
  238. #       yellowgreen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement