@jjlmoya/utils-diy 1.28.0 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/package.json +2 -2
  2. package/src/category/i18n/de.ts +12 -12
  3. package/src/category/i18n/en.ts +110 -110
  4. package/src/category/i18n/es.ts +110 -110
  5. package/src/category/i18n/fr.ts +101 -101
  6. package/src/category/i18n/id.ts +12 -12
  7. package/src/category/i18n/it.ts +12 -12
  8. package/src/category/i18n/ja.ts +12 -12
  9. package/src/category/i18n/ko.ts +12 -12
  10. package/src/category/i18n/nl.ts +12 -12
  11. package/src/category/i18n/pl.ts +12 -12
  12. package/src/category/i18n/pt.ts +12 -12
  13. package/src/category/i18n/ru.ts +12 -12
  14. package/src/category/i18n/sv.ts +12 -12
  15. package/src/category/i18n/tr.ts +12 -12
  16. package/src/category/i18n/zh.ts +12 -12
  17. package/src/category/index.ts +36 -36
  18. package/src/category/seo.astro +1 -1
  19. package/src/components/PreviewNavSidebar.astro +1 -1
  20. package/src/components/PreviewToolbar.astro +1 -1
  21. package/src/data.ts +1 -1
  22. package/src/entries.ts +37 -37
  23. package/src/env.d.ts +1 -1
  24. package/src/index.ts +50 -50
  25. package/src/layouts/PreviewLayout.astro +1 -1
  26. package/src/pages/index.astro +1 -1
  27. package/src/tests/category_seo_quality.test.ts +74 -0
  28. package/src/tests/faq_count.test.ts +1 -1
  29. package/src/tests/mocks/astro_mock.js +1 -1
  30. package/src/tests/no_h1_in_components.test.ts +1 -1
  31. package/src/tests/seo_length.test.ts +1 -1
  32. package/src/tests/seo_parity.test.ts +2 -2
  33. package/src/tests/seo_translation_completeness.test.ts +18 -12
  34. package/src/tests/tool_validation.test.ts +15 -15
  35. package/src/tool/balusterCalculator/bibliography.ts +16 -16
  36. package/src/tool/balusterCalculator/i18n/de.ts +251 -251
  37. package/src/tool/balusterCalculator/i18n/en.ts +251 -251
  38. package/src/tool/balusterCalculator/i18n/es.ts +251 -251
  39. package/src/tool/balusterCalculator/i18n/fr.ts +251 -251
  40. package/src/tool/balusterCalculator/i18n/id.ts +251 -251
  41. package/src/tool/balusterCalculator/i18n/it.ts +251 -251
  42. package/src/tool/balusterCalculator/i18n/ja.ts +251 -251
  43. package/src/tool/balusterCalculator/i18n/ko.ts +251 -251
  44. package/src/tool/balusterCalculator/i18n/nl.ts +251 -251
  45. package/src/tool/balusterCalculator/i18n/pl.ts +251 -251
  46. package/src/tool/balusterCalculator/i18n/pt.ts +251 -251
  47. package/src/tool/balusterCalculator/i18n/ru.ts +251 -251
  48. package/src/tool/balusterCalculator/i18n/sv.ts +251 -251
  49. package/src/tool/balusterCalculator/i18n/tr.ts +251 -251
  50. package/src/tool/balusterCalculator/i18n/zh.ts +251 -251
  51. package/src/tool/balusterCalculator/seo.astro +15 -15
  52. package/src/tool/clayCalculator/bibliography.ts +12 -12
  53. package/src/tool/clayCalculator/i18n/de.ts +174 -174
  54. package/src/tool/clayCalculator/i18n/en.ts +174 -174
  55. package/src/tool/clayCalculator/i18n/es.ts +174 -174
  56. package/src/tool/clayCalculator/i18n/fr.ts +174 -174
  57. package/src/tool/clayCalculator/i18n/id.ts +174 -174
  58. package/src/tool/clayCalculator/i18n/it.ts +174 -174
  59. package/src/tool/clayCalculator/i18n/ja.ts +173 -173
  60. package/src/tool/clayCalculator/i18n/ko.ts +174 -174
  61. package/src/tool/clayCalculator/i18n/nl.ts +174 -174
  62. package/src/tool/clayCalculator/i18n/pl.ts +174 -174
  63. package/src/tool/clayCalculator/i18n/pt.ts +174 -174
  64. package/src/tool/clayCalculator/i18n/ru.ts +174 -174
  65. package/src/tool/clayCalculator/i18n/sv.ts +174 -174
  66. package/src/tool/clayCalculator/i18n/tr.ts +174 -174
  67. package/src/tool/clayCalculator/i18n/zh.ts +174 -174
  68. package/src/tool/clayCalculator/seo.astro +15 -15
  69. package/src/tool/concreteCalculator/bibliography.ts +7 -7
  70. package/src/tool/concreteCalculator/i18n/de.ts +188 -188
  71. package/src/tool/concreteCalculator/i18n/en.ts +188 -188
  72. package/src/tool/concreteCalculator/i18n/es.ts +188 -188
  73. package/src/tool/concreteCalculator/i18n/fr.ts +188 -188
  74. package/src/tool/concreteCalculator/i18n/id.ts +188 -188
  75. package/src/tool/concreteCalculator/i18n/it.ts +188 -188
  76. package/src/tool/concreteCalculator/i18n/ja.ts +188 -188
  77. package/src/tool/concreteCalculator/i18n/ko.ts +188 -188
  78. package/src/tool/concreteCalculator/i18n/nl.ts +188 -188
  79. package/src/tool/concreteCalculator/i18n/pl.ts +188 -188
  80. package/src/tool/concreteCalculator/i18n/pt.ts +188 -188
  81. package/src/tool/concreteCalculator/i18n/ru.ts +188 -188
  82. package/src/tool/concreteCalculator/i18n/sv.ts +188 -188
  83. package/src/tool/concreteCalculator/i18n/tr.ts +188 -188
  84. package/src/tool/concreteCalculator/i18n/zh.ts +188 -188
  85. package/src/tool/concreteCalculator/seo.astro +15 -15
  86. package/src/tool/cutOptimizer/bibliography.ts +12 -12
  87. package/src/tool/cutOptimizer/i18n/de.ts +169 -169
  88. package/src/tool/cutOptimizer/i18n/en.ts +169 -169
  89. package/src/tool/cutOptimizer/i18n/es.ts +169 -169
  90. package/src/tool/cutOptimizer/i18n/fr.ts +169 -169
  91. package/src/tool/cutOptimizer/i18n/id.ts +169 -169
  92. package/src/tool/cutOptimizer/i18n/it.ts +169 -169
  93. package/src/tool/cutOptimizer/i18n/ja.ts +169 -169
  94. package/src/tool/cutOptimizer/i18n/ko.ts +169 -169
  95. package/src/tool/cutOptimizer/i18n/nl.ts +169 -169
  96. package/src/tool/cutOptimizer/i18n/pl.ts +169 -169
  97. package/src/tool/cutOptimizer/i18n/pt.ts +169 -169
  98. package/src/tool/cutOptimizer/i18n/ru.ts +169 -169
  99. package/src/tool/cutOptimizer/i18n/sv.ts +169 -169
  100. package/src/tool/cutOptimizer/i18n/tr.ts +169 -169
  101. package/src/tool/cutOptimizer/i18n/zh.ts +169 -169
  102. package/src/tool/cutOptimizer/seo.astro +15 -15
  103. package/src/tool/drillCalculator/bibliography.ts +12 -12
  104. package/src/tool/drillCalculator/i18n/de.ts +134 -134
  105. package/src/tool/drillCalculator/i18n/en.ts +134 -134
  106. package/src/tool/drillCalculator/i18n/es.ts +134 -134
  107. package/src/tool/drillCalculator/i18n/fr.ts +134 -134
  108. package/src/tool/drillCalculator/i18n/id.ts +134 -134
  109. package/src/tool/drillCalculator/i18n/it.ts +134 -134
  110. package/src/tool/drillCalculator/i18n/ja.ts +134 -134
  111. package/src/tool/drillCalculator/i18n/ko.ts +134 -134
  112. package/src/tool/drillCalculator/i18n/nl.ts +134 -134
  113. package/src/tool/drillCalculator/i18n/pl.ts +134 -134
  114. package/src/tool/drillCalculator/i18n/pt.ts +134 -134
  115. package/src/tool/drillCalculator/i18n/ru.ts +134 -134
  116. package/src/tool/drillCalculator/i18n/sv.ts +134 -134
  117. package/src/tool/drillCalculator/i18n/tr.ts +134 -134
  118. package/src/tool/drillCalculator/i18n/zh.ts +134 -134
  119. package/src/tool/drillCalculator/seo.astro +15 -15
  120. package/src/tool/drillSharpener/bibliography.ts +16 -16
  121. package/src/tool/drillSharpener/i18n/de.ts +117 -117
  122. package/src/tool/drillSharpener/i18n/en.ts +117 -117
  123. package/src/tool/drillSharpener/i18n/es.ts +117 -117
  124. package/src/tool/drillSharpener/i18n/fr.ts +117 -117
  125. package/src/tool/drillSharpener/i18n/id.ts +117 -117
  126. package/src/tool/drillSharpener/i18n/it.ts +117 -117
  127. package/src/tool/drillSharpener/i18n/ja.ts +117 -117
  128. package/src/tool/drillSharpener/i18n/ko.ts +117 -117
  129. package/src/tool/drillSharpener/i18n/nl.ts +117 -117
  130. package/src/tool/drillSharpener/i18n/pl.ts +117 -117
  131. package/src/tool/drillSharpener/i18n/pt.ts +117 -117
  132. package/src/tool/drillSharpener/i18n/ru.ts +117 -117
  133. package/src/tool/drillSharpener/i18n/sv.ts +117 -117
  134. package/src/tool/drillSharpener/i18n/tr.ts +117 -117
  135. package/src/tool/drillSharpener/i18n/zh.ts +117 -117
  136. package/src/tool/drillSharpener/seo.astro +15 -15
  137. package/src/tool/epoxyCalculator/bibliography.ts +20 -20
  138. package/src/tool/epoxyCalculator/i18n/de.ts +116 -116
  139. package/src/tool/epoxyCalculator/i18n/en.ts +178 -178
  140. package/src/tool/epoxyCalculator/i18n/es.ts +178 -178
  141. package/src/tool/epoxyCalculator/i18n/fr.ts +178 -178
  142. package/src/tool/epoxyCalculator/i18n/id.ts +116 -116
  143. package/src/tool/epoxyCalculator/i18n/it.ts +116 -116
  144. package/src/tool/epoxyCalculator/i18n/ja.ts +116 -116
  145. package/src/tool/epoxyCalculator/i18n/ko.ts +116 -116
  146. package/src/tool/epoxyCalculator/i18n/nl.ts +116 -116
  147. package/src/tool/epoxyCalculator/i18n/pl.ts +116 -116
  148. package/src/tool/epoxyCalculator/i18n/pt.ts +116 -116
  149. package/src/tool/epoxyCalculator/i18n/ru.ts +116 -116
  150. package/src/tool/epoxyCalculator/i18n/sv.ts +116 -116
  151. package/src/tool/epoxyCalculator/i18n/tr.ts +116 -116
  152. package/src/tool/epoxyCalculator/i18n/zh.ts +116 -116
  153. package/src/tool/epoxyCalculator/seo.astro +15 -15
  154. package/src/tool/furnitureFit/bibliography.ts +12 -12
  155. package/src/tool/furnitureFit/i18n/de.ts +111 -111
  156. package/src/tool/furnitureFit/i18n/en.ts +149 -149
  157. package/src/tool/furnitureFit/i18n/es.ts +149 -149
  158. package/src/tool/furnitureFit/i18n/fr.ts +149 -149
  159. package/src/tool/furnitureFit/i18n/id.ts +111 -111
  160. package/src/tool/furnitureFit/i18n/it.ts +111 -111
  161. package/src/tool/furnitureFit/i18n/ja.ts +111 -111
  162. package/src/tool/furnitureFit/i18n/ko.ts +111 -111
  163. package/src/tool/furnitureFit/i18n/nl.ts +111 -111
  164. package/src/tool/furnitureFit/i18n/pl.ts +111 -111
  165. package/src/tool/furnitureFit/i18n/pt.ts +111 -111
  166. package/src/tool/furnitureFit/i18n/ru.ts +111 -111
  167. package/src/tool/furnitureFit/i18n/sv.ts +111 -111
  168. package/src/tool/furnitureFit/i18n/tr.ts +111 -111
  169. package/src/tool/furnitureFit/i18n/zh.ts +111 -111
  170. package/src/tool/furnitureFit/seo.astro +15 -15
  171. package/src/tool/mortarCalculator/bibliography.ts +20 -20
  172. package/src/tool/mortarCalculator/i18n/de.ts +130 -130
  173. package/src/tool/mortarCalculator/i18n/en.ts +202 -202
  174. package/src/tool/mortarCalculator/i18n/es.ts +179 -179
  175. package/src/tool/mortarCalculator/i18n/fr.ts +203 -203
  176. package/src/tool/mortarCalculator/i18n/id.ts +130 -130
  177. package/src/tool/mortarCalculator/i18n/it.ts +130 -130
  178. package/src/tool/mortarCalculator/i18n/ja.ts +130 -130
  179. package/src/tool/mortarCalculator/i18n/ko.ts +130 -130
  180. package/src/tool/mortarCalculator/i18n/nl.ts +130 -130
  181. package/src/tool/mortarCalculator/i18n/pl.ts +130 -130
  182. package/src/tool/mortarCalculator/i18n/pt.ts +130 -130
  183. package/src/tool/mortarCalculator/i18n/ru.ts +130 -130
  184. package/src/tool/mortarCalculator/i18n/sv.ts +130 -130
  185. package/src/tool/mortarCalculator/i18n/tr.ts +130 -130
  186. package/src/tool/mortarCalculator/i18n/zh.ts +130 -130
  187. package/src/tool/mortarCalculator/seo.astro +15 -15
  188. package/src/tool/passepartoutCalculator/bibliography.ts +16 -16
  189. package/src/tool/passepartoutCalculator/i18n/de.ts +108 -108
  190. package/src/tool/passepartoutCalculator/i18n/en.ts +165 -165
  191. package/src/tool/passepartoutCalculator/i18n/es.ts +165 -165
  192. package/src/tool/passepartoutCalculator/i18n/fr.ts +165 -165
  193. package/src/tool/passepartoutCalculator/i18n/id.ts +108 -108
  194. package/src/tool/passepartoutCalculator/i18n/it.ts +108 -108
  195. package/src/tool/passepartoutCalculator/i18n/ja.ts +108 -108
  196. package/src/tool/passepartoutCalculator/i18n/ko.ts +108 -108
  197. package/src/tool/passepartoutCalculator/i18n/nl.ts +108 -108
  198. package/src/tool/passepartoutCalculator/i18n/pl.ts +108 -108
  199. package/src/tool/passepartoutCalculator/i18n/pt.ts +108 -108
  200. package/src/tool/passepartoutCalculator/i18n/ru.ts +108 -108
  201. package/src/tool/passepartoutCalculator/i18n/sv.ts +108 -108
  202. package/src/tool/passepartoutCalculator/i18n/tr.ts +108 -108
  203. package/src/tool/passepartoutCalculator/i18n/zh.ts +108 -108
  204. package/src/tool/passepartoutCalculator/seo.astro +15 -15
  205. package/src/tool/pythagoreanRightAngleCalculator/bibliography.ts +12 -12
  206. package/src/tool/pythagoreanRightAngleCalculator/i18n/de.ts +129 -129
  207. package/src/tool/pythagoreanRightAngleCalculator/i18n/en.ts +129 -129
  208. package/src/tool/pythagoreanRightAngleCalculator/i18n/es.ts +129 -129
  209. package/src/tool/pythagoreanRightAngleCalculator/i18n/fr.ts +129 -129
  210. package/src/tool/pythagoreanRightAngleCalculator/i18n/id.ts +129 -129
  211. package/src/tool/pythagoreanRightAngleCalculator/i18n/it.ts +129 -129
  212. package/src/tool/pythagoreanRightAngleCalculator/i18n/ja.ts +129 -129
  213. package/src/tool/pythagoreanRightAngleCalculator/i18n/ko.ts +129 -129
  214. package/src/tool/pythagoreanRightAngleCalculator/i18n/nl.ts +129 -129
  215. package/src/tool/pythagoreanRightAngleCalculator/i18n/pl.ts +129 -129
  216. package/src/tool/pythagoreanRightAngleCalculator/i18n/pt.ts +129 -129
  217. package/src/tool/pythagoreanRightAngleCalculator/i18n/ru.ts +129 -129
  218. package/src/tool/pythagoreanRightAngleCalculator/i18n/sv.ts +129 -129
  219. package/src/tool/pythagoreanRightAngleCalculator/i18n/tr.ts +129 -129
  220. package/src/tool/pythagoreanRightAngleCalculator/i18n/zh.ts +129 -129
  221. package/src/tool/stairCalculator/bibliography.ts +16 -16
  222. package/src/tool/stairCalculator/i18n/de.ts +143 -143
  223. package/src/tool/stairCalculator/i18n/en.ts +145 -145
  224. package/src/tool/stairCalculator/i18n/es.ts +145 -145
  225. package/src/tool/stairCalculator/i18n/fr.ts +145 -145
  226. package/src/tool/stairCalculator/i18n/id.ts +143 -143
  227. package/src/tool/stairCalculator/i18n/it.ts +143 -143
  228. package/src/tool/stairCalculator/i18n/ja.ts +143 -143
  229. package/src/tool/stairCalculator/i18n/ko.ts +143 -143
  230. package/src/tool/stairCalculator/i18n/nl.ts +143 -143
  231. package/src/tool/stairCalculator/i18n/pl.ts +143 -143
  232. package/src/tool/stairCalculator/i18n/pt.ts +143 -143
  233. package/src/tool/stairCalculator/i18n/ru.ts +143 -143
  234. package/src/tool/stairCalculator/i18n/sv.ts +143 -143
  235. package/src/tool/stairCalculator/i18n/tr.ts +143 -143
  236. package/src/tool/stairCalculator/i18n/zh.ts +143 -143
  237. package/src/tool/stairCalculator/seo.astro +15 -15
  238. package/src/tool/thermalExpansionCalculator/bibliography.ts +16 -16
  239. package/src/tool/thermalExpansionCalculator/i18n/de.ts +132 -132
  240. package/src/tool/thermalExpansionCalculator/i18n/en.ts +170 -170
  241. package/src/tool/thermalExpansionCalculator/i18n/es.ts +170 -170
  242. package/src/tool/thermalExpansionCalculator/i18n/fr.ts +170 -170
  243. package/src/tool/thermalExpansionCalculator/i18n/id.ts +132 -132
  244. package/src/tool/thermalExpansionCalculator/i18n/it.ts +132 -132
  245. package/src/tool/thermalExpansionCalculator/i18n/ja.ts +132 -132
  246. package/src/tool/thermalExpansionCalculator/i18n/ko.ts +132 -132
  247. package/src/tool/thermalExpansionCalculator/i18n/nl.ts +132 -132
  248. package/src/tool/thermalExpansionCalculator/i18n/pl.ts +132 -132
  249. package/src/tool/thermalExpansionCalculator/i18n/pt.ts +132 -132
  250. package/src/tool/thermalExpansionCalculator/i18n/ru.ts +132 -132
  251. package/src/tool/thermalExpansionCalculator/i18n/sv.ts +132 -132
  252. package/src/tool/thermalExpansionCalculator/i18n/tr.ts +132 -132
  253. package/src/tool/thermalExpansionCalculator/i18n/zh.ts +132 -132
  254. package/src/tool/thermalExpansionCalculator/seo.astro +15 -15
  255. package/src/tool/twoStrokeMixtureCalculator/bibliography.ts +12 -12
  256. package/src/tool/twoStrokeMixtureCalculator/i18n/de.ts +194 -194
  257. package/src/tool/twoStrokeMixtureCalculator/i18n/en.ts +194 -194
  258. package/src/tool/twoStrokeMixtureCalculator/i18n/es.ts +194 -194
  259. package/src/tool/twoStrokeMixtureCalculator/i18n/fr.ts +194 -194
  260. package/src/tool/twoStrokeMixtureCalculator/i18n/id.ts +194 -194
  261. package/src/tool/twoStrokeMixtureCalculator/i18n/it.ts +194 -194
  262. package/src/tool/twoStrokeMixtureCalculator/i18n/ja.ts +194 -194
  263. package/src/tool/twoStrokeMixtureCalculator/i18n/ko.ts +194 -194
  264. package/src/tool/twoStrokeMixtureCalculator/i18n/nl.ts +194 -194
  265. package/src/tool/twoStrokeMixtureCalculator/i18n/pl.ts +194 -194
  266. package/src/tool/twoStrokeMixtureCalculator/i18n/pt.ts +194 -194
  267. package/src/tool/twoStrokeMixtureCalculator/i18n/ru.ts +194 -194
  268. package/src/tool/twoStrokeMixtureCalculator/i18n/sv.ts +194 -194
  269. package/src/tool/twoStrokeMixtureCalculator/i18n/tr.ts +194 -194
  270. package/src/tool/twoStrokeMixtureCalculator/i18n/zh.ts +194 -194
  271. package/src/tool/voltageDropCalculator/bibliography.ts +16 -16
  272. package/src/tool/voltageDropCalculator/i18n/de.ts +113 -113
  273. package/src/tool/voltageDropCalculator/i18n/en.ts +151 -151
  274. package/src/tool/voltageDropCalculator/i18n/es.ts +151 -151
  275. package/src/tool/voltageDropCalculator/i18n/fr.ts +145 -145
  276. package/src/tool/voltageDropCalculator/i18n/id.ts +113 -113
  277. package/src/tool/voltageDropCalculator/i18n/it.ts +113 -113
  278. package/src/tool/voltageDropCalculator/i18n/ja.ts +113 -113
  279. package/src/tool/voltageDropCalculator/i18n/ko.ts +113 -113
  280. package/src/tool/voltageDropCalculator/i18n/nl.ts +113 -113
  281. package/src/tool/voltageDropCalculator/i18n/pl.ts +113 -113
  282. package/src/tool/voltageDropCalculator/i18n/pt.ts +113 -113
  283. package/src/tool/voltageDropCalculator/i18n/ru.ts +113 -113
  284. package/src/tool/voltageDropCalculator/i18n/sv.ts +113 -113
  285. package/src/tool/voltageDropCalculator/i18n/tr.ts +113 -113
  286. package/src/tool/voltageDropCalculator/i18n/zh.ts +113 -113
  287. package/src/tool/voltageDropCalculator/seo.astro +15 -15
  288. package/src/tool/workshopFractionConverter/bibliography.ts +12 -12
  289. package/src/tool/workshopFractionConverter/i18n/de.ts +147 -147
  290. package/src/tool/workshopFractionConverter/i18n/en.ts +147 -147
  291. package/src/tool/workshopFractionConverter/i18n/es.ts +147 -147
  292. package/src/tool/workshopFractionConverter/i18n/fr.ts +147 -147
  293. package/src/tool/workshopFractionConverter/i18n/id.ts +147 -147
  294. package/src/tool/workshopFractionConverter/i18n/it.ts +147 -147
  295. package/src/tool/workshopFractionConverter/i18n/ja.ts +147 -147
  296. package/src/tool/workshopFractionConverter/i18n/ko.ts +147 -147
  297. package/src/tool/workshopFractionConverter/i18n/nl.ts +147 -147
  298. package/src/tool/workshopFractionConverter/i18n/pl.ts +147 -147
  299. package/src/tool/workshopFractionConverter/i18n/pt.ts +147 -147
  300. package/src/tool/workshopFractionConverter/i18n/ru.ts +147 -147
  301. package/src/tool/workshopFractionConverter/i18n/sv.ts +147 -147
  302. package/src/tool/workshopFractionConverter/i18n/tr.ts +147 -147
  303. package/src/tool/workshopFractionConverter/i18n/zh.ts +147 -147
  304. package/src/tools.ts +20 -20
@@ -1,251 +1,251 @@
1
- import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
- import type { ToolLocaleContent } from '../../../types';
3
- import type { BalusterCalculatorUI } from '../ui';
4
- import { bibliography } from '../bibliography';
5
-
6
- const slug = 'baluster-calculator';
7
- const title = 'Baluster Calculator: Exact Railing Spacing';
8
- const description =
9
- 'Calculate the exact spacing between balusters or pickets for railings, complying with the 4-inch (10 cm) safety rule. Automatic layout plans.';
10
-
11
- const faqData = [
12
- {
13
- question: 'What is the maximum legal distance between balusters?',
14
- answer:
15
- 'In most international building codes (IRC in the US, CTE in Spain), the clear space between railing elements must not allow the passage of a 4-inch (10 cm) sphere to prevent childhood accidents.',
16
- },
17
- {
18
- question: 'How is spacing measured: on center or clear span?',
19
- answer:
20
- "Our calculator provides both. 'Clear span' is the actual gap between balusters (critical for safety), while 'on-center' distance is used to mark where to drill or fasten each baluster.",
21
- },
22
- {
23
- question: 'What if the spacing does not come out even?',
24
- answer:
25
- 'The calculator automatically adjusts the number of balusters so the first and last gap are identical, ensuring visual symmetry and strict compliance with the maximum allowed gap.',
26
- },
27
- {
28
- question: 'Is welding or screwing better for balusters?',
29
- answer:
30
- 'It depends on the material. For steel, welding offers maximum structural rigidity. For wood or aluminum, mechanical anchors or through-bolts are used. The railing must withstand a horizontal load of at least 0.8 kN/m.',
31
- },
32
- ];
33
-
34
- const howToData = [
35
- {
36
- name: 'Measure the total length',
37
- text: 'Measure the exact distance between the first and last post where the railing will be installed.',
38
- },
39
- {
40
- name: 'Define the baluster thickness',
41
- text: 'Measure the width of a single baluster (e.g. 2x2 cm for square tube, or diameter if round).',
42
- },
43
- {
44
- name: 'Set the maximum gap',
45
- text: 'Enter the desired maximum spacing (10 cm recommended to comply with safety codes).',
46
- },
47
- {
48
- name: 'Get installation marks',
49
- text: 'Review the list of exact positions for drilling to ensure a symmetric and safe layout.',
50
- },
51
- ];
52
-
53
- const faqSchema: WithContext<FAQPage> = {
54
- '@context': 'https://schema.org',
55
- '@type': 'FAQPage',
56
- mainEntity: faqData.map((item) => ({
57
- '@type': 'Question',
58
- name: item.question,
59
- acceptedAnswer: { '@type': 'Answer', text: item.answer },
60
- })),
61
- };
62
-
63
- const howToSchema: WithContext<HowToThing> = {
64
- '@context': 'https://schema.org',
65
- '@type': 'HowTo',
66
- name: title,
67
- description,
68
- step: howToData.map((step, i) => ({
69
- '@type': 'HowToStep',
70
- position: i + 1,
71
- name: step.name,
72
- text: step.text,
73
- })),
74
- };
75
-
76
- const appSchema: WithContext<SoftwareApplication> = {
77
- '@context': 'https://schema.org',
78
- '@type': 'SoftwareApplication',
79
- name: title,
80
- description,
81
- applicationCategory: 'UtilityApplication',
82
- operatingSystem: 'All',
83
- offers: { '@type': 'Offer', price: '0', priceCurrency: 'USD' },
84
- inLanguage: 'en',
85
- };
86
-
87
- export const content: ToolLocaleContent<BalusterCalculatorUI> = {
88
- slug,
89
- title,
90
- description,
91
- faqTitle: 'Frequently Asked Questions',
92
- faq: faqData,
93
- bibliography,
94
- howTo: howToData,
95
- schemas: [faqSchema, howToSchema, appSchema],
96
- seo: [
97
- {
98
- type: 'title',
99
- text: 'Definitive Guide: How to Calculate Baluster Spacing for Railings',
100
- level: 2,
101
- },
102
- {
103
- type: 'paragraph',
104
- html: 'Designing a safe and aesthetically perfect railing is an art that combines mathematical precision with building code compliance. Whether for a terrace, balcony, or interior staircase, correctly calculating balusters (or pickets) is the most critical step of the project. A calculation error not only ruins the visual symmetry but can make your structure illegal and unsafe.',
105
- },
106
- {
107
- type: 'card',
108
- icon: 'mdi:alert-circle-outline',
109
- title: 'Why is this calculation so important?',
110
- html: '<p>It\'s not just about "filling the gap." It\'s about complying with the <strong>4-Inch Sphere Rule (10 cm)</strong>, an international safety standard designed to prevent childhood accidents.</p>',
111
- },
112
- {
113
- type: 'title',
114
- text: '1. Safety Code: The 10 cm Sphere Rule',
115
- level: 3,
116
- },
117
- {
118
- type: 'paragraph',
119
- html: 'Before cutting the first piece of wood or metal, you must understand the "why" behind the math. The International Residential Code (IRC) in the United States, as well as the CTE (Código Técnico de la Edificación) in Spain, establishes a clear rule: <em>"The clear space between vertical elements must not allow passage of a sphere 4 inches (10 cm) in diameter."</em>',
120
- },
121
- {
122
- type: 'paragraph',
123
- html: "This measurement is not arbitrary. It is the average diameter of a young child's head (generally under 1 year old). If a child can fit their body through but their head gets stuck, the risk of suffocation is extremely high. If they can fit their head through, they can fall into the void. Therefore, the goal of our <strong>Baluster Calculator</strong> is not just aesthetic - it saves lives.",
124
- },
125
- {
126
- type: 'title',
127
- text: '2. The Math Problem: The Fencepost Error',
128
- level: 3,
129
- },
130
- {
131
- type: 'paragraph',
132
- html: 'In programming and construction, there is a classic problem called the <em>"Fencepost Error"</em>. If you want to build a 10-meter fence with posts every meter, how many posts do you need? The intuitive answer is 10, but the correct answer is 11.',
133
- },
134
- {
135
- type: 'paragraph',
136
- html: 'With balusters something similar occurs, but more complex, because the width of the baluster itself occupies space. The formula used by our tool solves this system of equations for you:',
137
- },
138
- {
139
- type: 'grid',
140
- columns: [
141
- {
142
- type: 'card',
143
- icon: 'mdi:calculator',
144
- title: 'Step A: Count Gaps',
145
- html: '<p class="bc-formula">n = (L - g_max) / (w + g_max)</p><p>First we determine how many balusters theoretically fit using the maximum allowed space. We round this number up to ensure the resulting gaps are <em>smaller</em> than the maximum.</p>',
146
- },
147
- {
148
- type: 'card',
149
- icon: 'mdi:function-variant',
150
- title: 'Step B: Recalculate Exact Gap',
151
- html: '<p class="bc-formula">g = (L - n × w) / (n + 1)</p><p>Once we know the exact number of balusters (n), we calculate how much space "remains" after subtracting all the wood width, and divide it equally among the gaps (n+1).</p>',
152
- },
153
- ],
154
- },
155
- {
156
- type: 'title',
157
- text: '3. Step-by-Step Installation Guide',
158
- level: 3,
159
- },
160
- {
161
- type: 'paragraph',
162
- html: 'Having the numbers is only half the battle. Here we explain how to transfer those figures from paper (or screen) to the reality of your project.',
163
- },
164
- {
165
- type: 'title',
166
- text: 'Step 1: Precision Measurement',
167
- level: 3,
168
- },
169
- {
170
- type: 'paragraph',
171
- html: 'Measure the <strong>internal</strong> distance between post and post. Do not measure from the center of the post. You need to know the exact clear span you will fill (L). If your railing has several sections, measure each one individually; buildings are rarely perfectly square and a 0.5 cm error can ruin the symmetry.',
172
- },
173
- {
174
- type: 'title',
175
- text: 'Step 2: Find the Center',
176
- level: 3,
177
- },
178
- {
179
- type: 'paragraph',
180
- html: 'The number one beginner mistake is starting to place balusters from one end toward the other. This almost always results in a final gap of an odd size, breaking visual harmony.<ul><li>Mark the <strong>exact center</strong> of the railing (L / 2).</li><li>Decide whether you want a <em>baluster</em> or a <em>gap</em> at the center.</li><li>If you want a baluster at center: mark half the baluster width on each side of your center mark.</li><li>If you want a gap at center: mark half the gap distance (g / 2) on each side.</li></ul>',
181
- },
182
- {
183
- type: 'title',
184
- text: 'Step 3: Make a Spacer Block',
185
- level: 3,
186
- },
187
- {
188
- type: 'paragraph',
189
- html: 'Do not use the tape measure for each baluster. Cumulative human error will cause the last baluster to be off by several centimeters. The professional approach is to cut a block of wood with the exact gap measurement (g) from our calculator.',
190
- },
191
- {
192
- type: 'paragraph',
193
- html: 'Use this block as a physical template. Place a baluster, put the block, place the next baluster tight against the block, and fasten it. This guarantees millimeter-level consistency.',
194
- },
195
- {
196
- type: 'title',
197
- text: '4. Materials and Tools Needed',
198
- level: 3,
199
- },
200
- {
201
- type: 'card',
202
- icon: 'mdi:tools',
203
- title: 'Equipment for a professional finish',
204
- html: '<ul><li>High-precision tape measure</li><li>Carpenter pencil</li><li>Bubble level (for verticality)</li><li>Miter saw (for clean cuts)</li><li>Drill and wood screws</li><li>Spacer blocks (made to measure)</li></ul>',
205
- },
206
- {
207
- type: 'title',
208
- text: '5. Additional Technical Questions',
209
- level: 3,
210
- },
211
- {
212
- type: 'card',
213
- icon: 'mdi:help-circle-outline',
214
- title: 'What if the last gap does not fit?',
215
- html: "<p>If you've used our calculator, this shouldn't happen. However, in the real world, wood warps and posts aren't always straight. If at the end you're off by 1-2 mm, it's imperceptible. If you're off by 1 cm, check your spacer blocks - you've probably been losing mm at each step.</p>",
216
- },
217
- {
218
- type: 'card',
219
- icon: 'mdi:shield-check-outline',
220
- title: 'Can I space balusters further apart if I have no children?',
221
- html: '<p>Legally, no. Building codes apply to the dwelling, not the current occupants. If you ever sell the house, a non-compliant railing will be a problem during inspection. Also, visitors (nephews, grandchildren) may be at risk.</p>',
222
- },
223
- {
224
- type: 'card',
225
- icon: 'mdi:wrench-outline',
226
- title: 'Wood, Metal or Glass?',
227
- html: '<p>This calculator works for <strong>any repetitive vertical element</strong>. If you use horizontal steel cables, different regulations apply (they typically must not allow climbing, "ladder effect"). For glass, it is considered a continuous panel and spacing does not apply - impact resistance does.</p>',
228
- },
229
- {
230
- type: 'card',
231
- icon: 'mdi:format-quote-close',
232
- title: 'Mies van der Rohe',
233
- html: '<p><em>"Architecture is the will of an epoch translated into space."</em></p><p>We hope this tool helps you build safer and more beautiful spaces. Always consult your local building code, as there may be specific variations on minimum height (typically 36-42 inches) or force loads.</p>',
234
- },
235
- ],
236
- ui: {
237
- sectionTitle: 'Dimensions',
238
- sectionDesc: 'Enter your railing measurements',
239
- labelRailLength: 'Total Length (L)',
240
- labelBalusterWidth: 'Baluster Width (w)',
241
- labelMaxGap: 'Maximum Gap (g)',
242
- blueprintTitle: 'Assembly Plan',
243
- blueprintRef: 'REF: BAL-001 // SCALE: AUTO',
244
- labelRequired: 'Balusters Required',
245
- labelExactGap: 'Exact Gap',
246
- labelOnCenter: 'On Center',
247
- labelTotalSpaces: 'Total Spaces',
248
- labelCoveredLength: 'Covered Length',
249
- labelDisclaimer: '* Dimensions shown are approximate for visualization.',
250
- },
251
- };
1
+ import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { BalusterCalculatorUI } from '../ui';
4
+ import { bibliography } from '../bibliography';
5
+
6
+ const slug = 'baluster-calculator';
7
+ const title = 'Baluster Calculator: Exact Railing Spacing';
8
+ const description =
9
+ 'Calculate the exact spacing between balusters or pickets for railings, complying with the 4-inch (10 cm) safety rule. Automatic layout plans.';
10
+
11
+ const faqData = [
12
+ {
13
+ question: 'What is the maximum legal distance between balusters?',
14
+ answer:
15
+ 'In most international building codes (IRC in the US, CTE in Spain), the clear space between railing elements must not allow the passage of a 4-inch (10 cm) sphere to prevent childhood accidents.',
16
+ },
17
+ {
18
+ question: 'How is spacing measured: on center or clear span?',
19
+ answer:
20
+ "Our calculator provides both. 'Clear span' is the actual gap between balusters (critical for safety), while 'on-center' distance is used to mark where to drill or fasten each baluster.",
21
+ },
22
+ {
23
+ question: 'What if the spacing does not come out even?',
24
+ answer:
25
+ 'The calculator automatically adjusts the number of balusters so the first and last gap are identical, ensuring visual symmetry and strict compliance with the maximum allowed gap.',
26
+ },
27
+ {
28
+ question: 'Is welding or screwing better for balusters?',
29
+ answer:
30
+ 'It depends on the material. For steel, welding offers maximum structural rigidity. For wood or aluminum, mechanical anchors or through-bolts are used. The railing must withstand a horizontal load of at least 0.8 kN/m.',
31
+ },
32
+ ];
33
+
34
+ const howToData = [
35
+ {
36
+ name: 'Measure the total length',
37
+ text: 'Measure the exact distance between the first and last post where the railing will be installed.',
38
+ },
39
+ {
40
+ name: 'Define the baluster thickness',
41
+ text: 'Measure the width of a single baluster (e.g. 2x2 cm for square tube, or diameter if round).',
42
+ },
43
+ {
44
+ name: 'Set the maximum gap',
45
+ text: 'Enter the desired maximum spacing (10 cm recommended to comply with safety codes).',
46
+ },
47
+ {
48
+ name: 'Get installation marks',
49
+ text: 'Review the list of exact positions for drilling to ensure a symmetric and safe layout.',
50
+ },
51
+ ];
52
+
53
+ const faqSchema: WithContext<FAQPage> = {
54
+ '@context': 'https://schema.org',
55
+ '@type': 'FAQPage',
56
+ mainEntity: faqData.map((item) => ({
57
+ '@type': 'Question',
58
+ name: item.question,
59
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
60
+ })),
61
+ };
62
+
63
+ const howToSchema: WithContext<HowToThing> = {
64
+ '@context': 'https://schema.org',
65
+ '@type': 'HowTo',
66
+ name: title,
67
+ description,
68
+ step: howToData.map((step, i) => ({
69
+ '@type': 'HowToStep',
70
+ position: i + 1,
71
+ name: step.name,
72
+ text: step.text,
73
+ })),
74
+ };
75
+
76
+ const appSchema: WithContext<SoftwareApplication> = {
77
+ '@context': 'https://schema.org',
78
+ '@type': 'SoftwareApplication',
79
+ name: title,
80
+ description,
81
+ applicationCategory: 'UtilityApplication',
82
+ operatingSystem: 'All',
83
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'USD' },
84
+ inLanguage: 'en',
85
+ };
86
+
87
+ export const content: ToolLocaleContent<BalusterCalculatorUI> = {
88
+ slug,
89
+ title,
90
+ description,
91
+ faqTitle: 'Frequently Asked Questions',
92
+ faq: faqData,
93
+ bibliography,
94
+ howTo: howToData,
95
+ schemas: [faqSchema, howToSchema, appSchema],
96
+ seo: [
97
+ {
98
+ type: 'title',
99
+ text: 'Definitive Guide: How to Calculate Baluster Spacing for Railings',
100
+ level: 2,
101
+ },
102
+ {
103
+ type: 'paragraph',
104
+ html: 'Designing a safe and aesthetically perfect railing is an art that combines mathematical precision with building code compliance. Whether for a terrace, balcony, or interior staircase, correctly calculating balusters (or pickets) is the most critical step of the project. A calculation error not only ruins the visual symmetry but can make your structure illegal and unsafe.',
105
+ },
106
+ {
107
+ type: 'card',
108
+ icon: 'mdi:alert-circle-outline',
109
+ title: 'Why is this calculation so important?',
110
+ html: '<p>It\'s not just about "filling the gap." It\'s about complying with the <strong>4-Inch Sphere Rule (10 cm)</strong>, an international safety standard designed to prevent childhood accidents.</p>',
111
+ },
112
+ {
113
+ type: 'title',
114
+ text: '1. Safety Code: The 10 cm Sphere Rule',
115
+ level: 3,
116
+ },
117
+ {
118
+ type: 'paragraph',
119
+ html: 'Before cutting the first piece of wood or metal, you must understand the "why" behind the math. The International Residential Code (IRC) in the United States, as well as the CTE (Código Técnico de la Edificación) in Spain, establishes a clear rule: <em>"The clear space between vertical elements must not allow passage of a sphere 4 inches (10 cm) in diameter."</em>',
120
+ },
121
+ {
122
+ type: 'paragraph',
123
+ html: "This measurement is not arbitrary. It is the average diameter of a young child's head (generally under 1 year old). If a child can fit their body through but their head gets stuck, the risk of suffocation is extremely high. If they can fit their head through, they can fall into the void. Therefore, the goal of our <strong>Baluster Calculator</strong> is not just aesthetic - it saves lives.",
124
+ },
125
+ {
126
+ type: 'title',
127
+ text: '2. The Math Problem: The Fencepost Error',
128
+ level: 3,
129
+ },
130
+ {
131
+ type: 'paragraph',
132
+ html: 'In programming and construction, there is a classic problem called the <em>"Fencepost Error"</em>. If you want to build a 10-meter fence with posts every meter, how many posts do you need? The intuitive answer is 10, but the correct answer is 11.',
133
+ },
134
+ {
135
+ type: 'paragraph',
136
+ html: 'With balusters something similar occurs, but more complex, because the width of the baluster itself occupies space. The formula used by our tool solves this system of equations for you:',
137
+ },
138
+ {
139
+ type: 'grid',
140
+ columns: [
141
+ {
142
+ type: 'card',
143
+ icon: 'mdi:calculator',
144
+ title: 'Step A: Count Gaps',
145
+ html: '<p class="bc-formula">n = (L - g_max) / (w + g_max)</p><p>First we determine how many balusters theoretically fit using the maximum allowed space. We round this number up to ensure the resulting gaps are <em>smaller</em> than the maximum.</p>',
146
+ },
147
+ {
148
+ type: 'card',
149
+ icon: 'mdi:function-variant',
150
+ title: 'Step B: Recalculate Exact Gap',
151
+ html: '<p class="bc-formula">g = (L - n × w) / (n + 1)</p><p>Once we know the exact number of balusters (n), we calculate how much space "remains" after subtracting all the wood width, and divide it equally among the gaps (n+1).</p>',
152
+ },
153
+ ],
154
+ },
155
+ {
156
+ type: 'title',
157
+ text: '3. Step-by-Step Installation Guide',
158
+ level: 3,
159
+ },
160
+ {
161
+ type: 'paragraph',
162
+ html: 'Having the numbers is only half the battle. Here we explain how to transfer those figures from paper (or screen) to the reality of your project.',
163
+ },
164
+ {
165
+ type: 'title',
166
+ text: 'Step 1: Precision Measurement',
167
+ level: 3,
168
+ },
169
+ {
170
+ type: 'paragraph',
171
+ html: 'Measure the <strong>internal</strong> distance between post and post. Do not measure from the center of the post. You need to know the exact clear span you will fill (L). If your railing has several sections, measure each one individually; buildings are rarely perfectly square and a 0.5 cm error can ruin the symmetry.',
172
+ },
173
+ {
174
+ type: 'title',
175
+ text: 'Step 2: Find the Center',
176
+ level: 3,
177
+ },
178
+ {
179
+ type: 'paragraph',
180
+ html: 'The number one beginner mistake is starting to place balusters from one end toward the other. This almost always results in a final gap of an odd size, breaking visual harmony.<ul><li>Mark the <strong>exact center</strong> of the railing (L / 2).</li><li>Decide whether you want a <em>baluster</em> or a <em>gap</em> at the center.</li><li>If you want a baluster at center: mark half the baluster width on each side of your center mark.</li><li>If you want a gap at center: mark half the gap distance (g / 2) on each side.</li></ul>',
181
+ },
182
+ {
183
+ type: 'title',
184
+ text: 'Step 3: Make a Spacer Block',
185
+ level: 3,
186
+ },
187
+ {
188
+ type: 'paragraph',
189
+ html: 'Do not use the tape measure for each baluster. Cumulative human error will cause the last baluster to be off by several centimeters. The professional approach is to cut a block of wood with the exact gap measurement (g) from our calculator.',
190
+ },
191
+ {
192
+ type: 'paragraph',
193
+ html: 'Use this block as a physical template. Place a baluster, put the block, place the next baluster tight against the block, and fasten it. This guarantees millimeter-level consistency.',
194
+ },
195
+ {
196
+ type: 'title',
197
+ text: '4. Materials and Tools Needed',
198
+ level: 3,
199
+ },
200
+ {
201
+ type: 'card',
202
+ icon: 'mdi:tools',
203
+ title: 'Equipment for a professional finish',
204
+ html: '<ul><li>High-precision tape measure</li><li>Carpenter pencil</li><li>Bubble level (for verticality)</li><li>Miter saw (for clean cuts)</li><li>Drill and wood screws</li><li>Spacer blocks (made to measure)</li></ul>',
205
+ },
206
+ {
207
+ type: 'title',
208
+ text: '5. Additional Technical Questions',
209
+ level: 3,
210
+ },
211
+ {
212
+ type: 'card',
213
+ icon: 'mdi:help-circle-outline',
214
+ title: 'What if the last gap does not fit?',
215
+ html: "<p>If you've used our calculator, this shouldn't happen. However, in the real world, wood warps and posts aren't always straight. If at the end you're off by 1-2 mm, it's imperceptible. If you're off by 1 cm, check your spacer blocks - you've probably been losing mm at each step.</p>",
216
+ },
217
+ {
218
+ type: 'card',
219
+ icon: 'mdi:shield-check-outline',
220
+ title: 'Can I space balusters further apart if I have no children?',
221
+ html: '<p>Legally, no. Building codes apply to the dwelling, not the current occupants. If you ever sell the house, a non-compliant railing will be a problem during inspection. Also, visitors (nephews, grandchildren) may be at risk.</p>',
222
+ },
223
+ {
224
+ type: 'card',
225
+ icon: 'mdi:wrench-outline',
226
+ title: 'Wood, Metal or Glass?',
227
+ html: '<p>This calculator works for <strong>any repetitive vertical element</strong>. If you use horizontal steel cables, different regulations apply (they typically must not allow climbing, "ladder effect"). For glass, it is considered a continuous panel and spacing does not apply - impact resistance does.</p>',
228
+ },
229
+ {
230
+ type: 'card',
231
+ icon: 'mdi:format-quote-close',
232
+ title: 'Mies van der Rohe',
233
+ html: '<p><em>"Architecture is the will of an epoch translated into space."</em></p><p>We hope this tool helps you build safer and more beautiful spaces. Always consult your local building code, as there may be specific variations on minimum height (typically 36-42 inches) or force loads.</p>',
234
+ },
235
+ ],
236
+ ui: {
237
+ sectionTitle: 'Dimensions',
238
+ sectionDesc: 'Enter your railing measurements',
239
+ labelRailLength: 'Total Length (L)',
240
+ labelBalusterWidth: 'Baluster Width (w)',
241
+ labelMaxGap: 'Maximum Gap (g)',
242
+ blueprintTitle: 'Assembly Plan',
243
+ blueprintRef: 'REF: BAL-001 // SCALE: AUTO',
244
+ labelRequired: 'Balusters Required',
245
+ labelExactGap: 'Exact Gap',
246
+ labelOnCenter: 'On Center',
247
+ labelTotalSpaces: 'Total Spaces',
248
+ labelCoveredLength: 'Covered Length',
249
+ labelDisclaimer: '* Dimensions shown are approximate for visualization.',
250
+ },
251
+ };