@jjlmoya/utils-textiles 1.20.0 → 1.22.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 (209) hide show
  1. package/package.json +1 -1
  2. package/src/category/i18n/de.ts +76 -76
  3. package/src/category/i18n/en.ts +76 -76
  4. package/src/category/i18n/es.ts +76 -76
  5. package/src/category/i18n/fr.ts +76 -76
  6. package/src/category/i18n/id.ts +76 -76
  7. package/src/category/i18n/it.ts +76 -76
  8. package/src/category/i18n/ja.ts +76 -76
  9. package/src/category/i18n/ko.ts +76 -76
  10. package/src/category/i18n/nl.ts +76 -76
  11. package/src/category/i18n/pl.ts +76 -76
  12. package/src/category/i18n/pt.ts +76 -76
  13. package/src/category/i18n/ru.ts +76 -76
  14. package/src/category/i18n/sv.ts +76 -76
  15. package/src/category/i18n/zh.ts +76 -76
  16. package/src/category/index.ts +2 -0
  17. package/src/category/seo.astro +1 -1
  18. package/src/components/PreviewNavSidebar.astro +1 -1
  19. package/src/components/PreviewToolbar.astro +1 -1
  20. package/src/data.ts +1 -1
  21. package/src/entries.ts +4 -1
  22. package/src/env.d.ts +1 -1
  23. package/src/index.ts +1 -1
  24. package/src/layouts/PreviewLayout.astro +113 -113
  25. package/src/pages/index.astro +1 -1
  26. package/src/tests/faq_count.test.ts +19 -19
  27. package/src/tests/i18n_coverage.test.ts +4 -2
  28. package/src/tests/locale_spelling.test.ts +44 -0
  29. package/src/tests/mocks/astro_mock.js +1 -1
  30. package/src/tests/no_en_dash.test.ts +70 -70
  31. package/src/tests/no_h1_in_components.test.ts +1 -1
  32. package/src/tests/seo_length.test.ts +22 -22
  33. package/src/tests/seo_translation_completeness.test.ts +69 -0
  34. package/src/tests/spanish_leakage.test.ts +175 -153
  35. package/src/tests/tool_validation.test.ts +17 -17
  36. package/src/tool/burnTest/i18n/es.ts +211 -211
  37. package/src/tool/burnTest/i18n/fr.ts +211 -211
  38. package/src/tool/burnTest/i18n/ja.ts +211 -211
  39. package/src/tool/burnTest/i18n/ko.ts +211 -211
  40. package/src/tool/burnTest/i18n/pl.ts +211 -211
  41. package/src/tool/burnTest/i18n/ru.ts +211 -211
  42. package/src/tool/burnTest/i18n/sv.ts +211 -211
  43. package/src/tool/burnTest/i18n/zh.ts +211 -211
  44. package/src/tool/burnTest/seo.astro +15 -15
  45. package/src/tool/clothingSizeConverter/i18n/de.ts +348 -348
  46. package/src/tool/clothingSizeConverter/i18n/en.ts +348 -348
  47. package/src/tool/clothingSizeConverter/i18n/fr.ts +348 -348
  48. package/src/tool/clothingSizeConverter/i18n/ja.ts +348 -348
  49. package/src/tool/clothingSizeConverter/i18n/ko.ts +348 -348
  50. package/src/tool/clothingSizeConverter/i18n/nl.ts +348 -348
  51. package/src/tool/clothingSizeConverter/i18n/pl.ts +348 -348
  52. package/src/tool/clothingSizeConverter/i18n/ru.ts +348 -348
  53. package/src/tool/clothingSizeConverter/i18n/sv.ts +348 -348
  54. package/src/tool/clothingSizeConverter/i18n/tr.ts +348 -348
  55. package/src/tool/clothingSizeConverter/i18n/zh.ts +348 -348
  56. package/src/tool/clothingSizeConverter/seo.astro +15 -15
  57. package/src/tool/embroideryStitchPricingEstimator/bibliography.astro +6 -0
  58. package/src/tool/embroideryStitchPricingEstimator/bibliography.ts +12 -0
  59. package/src/tool/embroideryStitchPricingEstimator/component.astro +111 -0
  60. package/src/tool/embroideryStitchPricingEstimator/controller.ts +111 -0
  61. package/src/tool/embroideryStitchPricingEstimator/dom-views.ts +94 -0
  62. package/src/tool/embroideryStitchPricingEstimator/embroidery-stitch-count-pricing-estimator.css +438 -0
  63. package/src/tool/embroideryStitchPricingEstimator/entry.ts +29 -0
  64. package/src/tool/embroideryStitchPricingEstimator/evaluator.ts +22 -0
  65. package/src/tool/embroideryStitchPricingEstimator/i18n/de.ts +38 -0
  66. package/src/tool/embroideryStitchPricingEstimator/i18n/en.ts +194 -0
  67. package/src/tool/embroideryStitchPricingEstimator/i18n/es.ts +38 -0
  68. package/src/tool/embroideryStitchPricingEstimator/i18n/fr.ts +38 -0
  69. package/src/tool/embroideryStitchPricingEstimator/i18n/id.ts +38 -0
  70. package/src/tool/embroideryStitchPricingEstimator/i18n/it.ts +38 -0
  71. package/src/tool/embroideryStitchPricingEstimator/i18n/ja.ts +38 -0
  72. package/src/tool/embroideryStitchPricingEstimator/i18n/ko.ts +38 -0
  73. package/src/tool/embroideryStitchPricingEstimator/i18n/nl.ts +38 -0
  74. package/src/tool/embroideryStitchPricingEstimator/i18n/pl.ts +38 -0
  75. package/src/tool/embroideryStitchPricingEstimator/i18n/pt.ts +38 -0
  76. package/src/tool/embroideryStitchPricingEstimator/i18n/ru.ts +38 -0
  77. package/src/tool/embroideryStitchPricingEstimator/i18n/sv.ts +38 -0
  78. package/src/tool/embroideryStitchPricingEstimator/i18n/tr.ts +38 -0
  79. package/src/tool/embroideryStitchPricingEstimator/i18n/zh.ts +38 -0
  80. package/src/tool/embroideryStitchPricingEstimator/index.ts +11 -0
  81. package/src/tool/embroideryStitchPricingEstimator/logic.test.ts +40 -0
  82. package/src/tool/embroideryStitchPricingEstimator/logic.ts +86 -0
  83. package/src/tool/embroideryStitchPricingEstimator/seo.astro +15 -0
  84. package/src/tool/embroideryStitchPricingEstimator/storage.ts +20 -0
  85. package/src/tool/embroideryStitchPricingEstimator/ui.ts +53 -0
  86. package/src/tool/fabricProjectCalculator/i18n/de.ts +236 -236
  87. package/src/tool/fabricProjectCalculator/i18n/ja.ts +236 -236
  88. package/src/tool/fabricProjectCalculator/i18n/ko.ts +236 -236
  89. package/src/tool/fabricProjectCalculator/i18n/nl.ts +236 -236
  90. package/src/tool/fabricProjectCalculator/i18n/pl.ts +236 -236
  91. package/src/tool/fabricProjectCalculator/i18n/ru.ts +236 -236
  92. package/src/tool/fabricProjectCalculator/i18n/sv.ts +236 -236
  93. package/src/tool/fabricProjectCalculator/i18n/tr.ts +236 -236
  94. package/src/tool/fabricProjectCalculator/i18n/zh.ts +236 -236
  95. package/src/tool/fabricProjectCalculator/seo.astro +15 -15
  96. package/src/tool/fabricTruth/i18n/de.ts +268 -268
  97. package/src/tool/fabricTruth/i18n/en.ts +268 -268
  98. package/src/tool/fabricTruth/i18n/es.ts +302 -302
  99. package/src/tool/fabricTruth/i18n/fr.ts +268 -268
  100. package/src/tool/fabricTruth/i18n/id.ts +268 -268
  101. package/src/tool/fabricTruth/i18n/it.ts +268 -268
  102. package/src/tool/fabricTruth/i18n/ja.ts +268 -268
  103. package/src/tool/fabricTruth/i18n/ko.ts +268 -268
  104. package/src/tool/fabricTruth/i18n/nl.ts +268 -268
  105. package/src/tool/fabricTruth/i18n/pl.ts +268 -268
  106. package/src/tool/fabricTruth/i18n/pt.ts +268 -268
  107. package/src/tool/fabricTruth/i18n/ru.ts +268 -268
  108. package/src/tool/fabricTruth/i18n/sv.ts +268 -268
  109. package/src/tool/fabricTruth/i18n/tr.ts +268 -268
  110. package/src/tool/fabricTruth/i18n/zh.ts +272 -272
  111. package/src/tool/fabricTruth/seo.astro +15 -15
  112. package/src/tool/fiberPrep/i18n/de.ts +215 -215
  113. package/src/tool/fiberPrep/i18n/fr.ts +215 -215
  114. package/src/tool/fiberPrep/i18n/ja.ts +215 -215
  115. package/src/tool/fiberPrep/i18n/ko.ts +215 -215
  116. package/src/tool/fiberPrep/i18n/nl.ts +215 -215
  117. package/src/tool/fiberPrep/i18n/pl.ts +215 -215
  118. package/src/tool/fiberPrep/i18n/ru.ts +215 -215
  119. package/src/tool/fiberPrep/i18n/sv.ts +215 -215
  120. package/src/tool/fiberPrep/i18n/tr.ts +215 -215
  121. package/src/tool/fiberPrep/i18n/zh.ts +215 -215
  122. package/src/tool/fiberPrep/seo.astro +15 -15
  123. package/src/tool/knittingGauge/i18n/de.ts +224 -224
  124. package/src/tool/knittingGauge/i18n/ja.ts +224 -224
  125. package/src/tool/knittingGauge/i18n/ko.ts +224 -224
  126. package/src/tool/knittingGauge/i18n/pl.ts +224 -224
  127. package/src/tool/knittingGauge/i18n/ru.ts +224 -224
  128. package/src/tool/knittingGauge/i18n/tr.ts +224 -224
  129. package/src/tool/knittingGauge/i18n/zh.ts +224 -224
  130. package/src/tool/knittingGauge/seo.astro +15 -15
  131. package/src/tool/laundryGuide/i18n/de.ts +271 -271
  132. package/src/tool/laundryGuide/i18n/en.ts +271 -271
  133. package/src/tool/laundryGuide/i18n/es.ts +271 -271
  134. package/src/tool/laundryGuide/i18n/fr.ts +255 -255
  135. package/src/tool/laundryGuide/i18n/id.ts +271 -271
  136. package/src/tool/laundryGuide/i18n/it.ts +271 -271
  137. package/src/tool/laundryGuide/i18n/ja.ts +271 -271
  138. package/src/tool/laundryGuide/i18n/ko.ts +271 -271
  139. package/src/tool/laundryGuide/i18n/nl.ts +271 -271
  140. package/src/tool/laundryGuide/i18n/pl.ts +271 -271
  141. package/src/tool/laundryGuide/i18n/pt.ts +271 -271
  142. package/src/tool/laundryGuide/i18n/ru.ts +271 -271
  143. package/src/tool/laundryGuide/i18n/sv.ts +271 -271
  144. package/src/tool/laundryGuide/i18n/tr.ts +271 -271
  145. package/src/tool/laundryGuide/i18n/zh.ts +271 -271
  146. package/src/tool/laundryGuide/seo.astro +15 -15
  147. package/src/tool/needleConverter/i18n/de.ts +202 -202
  148. package/src/tool/needleConverter/i18n/es.ts +207 -207
  149. package/src/tool/needleConverter/i18n/fr.ts +207 -207
  150. package/src/tool/needleConverter/i18n/ja.ts +202 -202
  151. package/src/tool/needleConverter/i18n/ko.ts +202 -202
  152. package/src/tool/needleConverter/i18n/nl.ts +202 -202
  153. package/src/tool/needleConverter/i18n/pl.ts +202 -202
  154. package/src/tool/needleConverter/i18n/ru.ts +202 -202
  155. package/src/tool/needleConverter/i18n/sv.ts +202 -202
  156. package/src/tool/needleConverter/i18n/tr.ts +202 -202
  157. package/src/tool/needleConverter/i18n/zh.ts +202 -202
  158. package/src/tool/needleConverter/seo.astro +15 -15
  159. package/src/tool/sewingPatternScaler/component.astro +236 -236
  160. package/src/tool/sewingPatternScaler/i18n/fr.ts +170 -170
  161. package/src/tool/sewingPatternScaler/i18n/ja.ts +114 -114
  162. package/src/tool/sewingPatternScaler/i18n/ko.ts +114 -114
  163. package/src/tool/sewingPatternScaler/i18n/nl.ts +114 -114
  164. package/src/tool/sewingPatternScaler/i18n/pl.ts +114 -114
  165. package/src/tool/sewingPatternScaler/i18n/ru.ts +114 -114
  166. package/src/tool/sewingPatternScaler/i18n/sv.ts +114 -114
  167. package/src/tool/sewingPatternScaler/i18n/tr.ts +114 -114
  168. package/src/tool/sewingPatternScaler/i18n/zh.ts +114 -114
  169. package/src/tool/sewingPatternScaler/seo.astro +15 -15
  170. package/src/tool/shoeSizeConverter/i18n/fr.ts +183 -183
  171. package/src/tool/shoeSizeConverter/i18n/ja.ts +179 -179
  172. package/src/tool/shoeSizeConverter/i18n/ko.ts +179 -179
  173. package/src/tool/shoeSizeConverter/i18n/nl.ts +179 -179
  174. package/src/tool/shoeSizeConverter/i18n/pl.ts +179 -179
  175. package/src/tool/shoeSizeConverter/i18n/ru.ts +179 -179
  176. package/src/tool/shoeSizeConverter/i18n/sv.ts +179 -179
  177. package/src/tool/shoeSizeConverter/i18n/tr.ts +179 -179
  178. package/src/tool/shoeSizeConverter/i18n/zh.ts +179 -179
  179. package/src/tool/shoeSizeConverter/seo.astro +15 -15
  180. package/src/tool/stainChemistry/bibliography.ts +16 -16
  181. package/src/tool/stainChemistry/i18n/de.ts +286 -286
  182. package/src/tool/stainChemistry/i18n/en.ts +289 -289
  183. package/src/tool/stainChemistry/i18n/es.ts +286 -286
  184. package/src/tool/stainChemistry/i18n/fr.ts +296 -296
  185. package/src/tool/stainChemistry/i18n/id.ts +286 -286
  186. package/src/tool/stainChemistry/i18n/it.ts +286 -286
  187. package/src/tool/stainChemistry/i18n/ja.ts +286 -286
  188. package/src/tool/stainChemistry/i18n/ko.ts +283 -283
  189. package/src/tool/stainChemistry/i18n/nl.ts +286 -286
  190. package/src/tool/stainChemistry/i18n/pl.ts +286 -286
  191. package/src/tool/stainChemistry/i18n/pt.ts +286 -286
  192. package/src/tool/stainChemistry/i18n/ru.ts +286 -286
  193. package/src/tool/stainChemistry/i18n/sv.ts +286 -286
  194. package/src/tool/stainChemistry/i18n/tr.ts +286 -286
  195. package/src/tool/stainChemistry/i18n/zh.ts +281 -281
  196. package/src/tool/stainChemistry/seo.astro +15 -15
  197. package/src/tool/yarnCalculator/i18n/de.ts +296 -296
  198. package/src/tool/yarnCalculator/i18n/es.ts +296 -296
  199. package/src/tool/yarnCalculator/i18n/fr.ts +296 -296
  200. package/src/tool/yarnCalculator/i18n/ja.ts +296 -296
  201. package/src/tool/yarnCalculator/i18n/ko.ts +296 -296
  202. package/src/tool/yarnCalculator/i18n/nl.ts +296 -296
  203. package/src/tool/yarnCalculator/i18n/pl.ts +296 -296
  204. package/src/tool/yarnCalculator/i18n/ru.ts +296 -296
  205. package/src/tool/yarnCalculator/i18n/sv.ts +296 -296
  206. package/src/tool/yarnCalculator/i18n/tr.ts +296 -296
  207. package/src/tool/yarnCalculator/i18n/zh.ts +295 -295
  208. package/src/tool/yarnCalculator/seo.astro +15 -15
  209. package/src/tools.ts +2 -2
@@ -1,236 +1,236 @@
1
- import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
- import type { ToolLocaleContent } from '../../../types';
3
- import { bibliography } from '../bibliography';
4
- import type { FabricProjectCalculatorUI } from '../ui';
5
-
6
- const slug = 'fabric-project-calculator';
7
- const title = '单件服装布料消耗计算器';
8
- const description =
9
- '轻松计算缝制裙子、裤子、连衣裙或衬衫需要多少面料。根据布料宽度和尺码进行调整,实现专业裁剪。';
10
-
11
- const faqData = [
12
- {
13
- question: '缝制一条裙子需要多少布料?',
14
- answer:
15
- '这取决于布料的宽度。对于 140-150 厘米宽的面料,缝制一条直筒裙通常 1.20 米就够了。如果面料宽度只有 90-110 厘米,则需要 2.00 米。',
16
- },
17
- {
18
- question: '布料宽度如何影响消耗量?',
19
- answer:
20
- '宽度较窄时,样板零件无法并排(平行)放置,因此消耗量通常会翻倍,因为零件必须一个放在另一个下面。',
21
- },
22
- {
23
- question: '买布料时多买一点更好吗?',
24
- answer:
25
- '是的,建议预留 10%(约 20 厘米)的余量,以补偿缩水、织物缺陷或意外的缝纫留边。',
26
- },
27
- {
28
- question: '什么是布料的经向(布纹),它有什么影响?',
29
- answer:
30
- '它是与布料幅宽边缘(布边)平行的方向。样板必须与该纹理对齐,这样服装在穿着时才不会变形。',
31
- },
32
- ];
33
-
34
- const howToData = [
35
- {
36
- name: '选择服装类型',
37
- text: '选择您要制作的模型(裙子、裤子等)以加载其基础消耗表。',
38
- },
39
- {
40
- name: '输入布料宽度',
41
- text: '测量您打算购买的布料从布边到布边的宽度(90、115、140 或 150 厘米)。',
42
- },
43
- {
44
- name: '选择尺码',
45
- text: '根据尺码(XS-S、M-L、XL-XXL)调整服装体积,以重新计算乘数因子。',
46
- },
47
- {
48
- name: '获取总长度',
49
- text: '检查含缝份和不含缝份的最终结果,以便准确知道在商店里要买多少米。',
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<HowTo> = {
64
- '@context': 'https://schema.org',
65
- '@type': 'HowTo',
66
- name: title,
67
- description,
68
- step: howToData.map((step) => ({
69
- '@type': 'HowToStep',
70
- name: step.name,
71
- text: step.text,
72
- })),
73
- };
74
-
75
- const appSchema: WithContext<SoftwareApplication> = {
76
- '@context': 'https://schema.org',
77
- '@type': 'SoftwareApplication',
78
- name: title,
79
- description,
80
- applicationCategory: 'UtilityApplication',
81
- operatingSystem: 'All',
82
- offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
83
- inLanguage: 'zh',
84
- };
85
-
86
- export const content: ToolLocaleContent<FabricProjectCalculatorUI> = {
87
- slug,
88
- title,
89
- description,
90
- faq: faqData,
91
- bibliography: bibliography,
92
- howTo: howToData,
93
- schemas: [faqSchema, howToSchema, appSchema],
94
- seo: [
95
- {
96
- type: 'title',
97
- text: '服装制作布料长度计算器:消耗指南',
98
- level: 2,
99
- },
100
- {
101
- type: 'paragraph',
102
- html: '在缝纫工作室中,最常见的疑问之一是确定为一个特定项目购买多少布料。布料消耗量主要取决于三个因素:服装模型、个人尺寸,以及最核心的 - - 布料幅宽(通常在 90 厘米到 150 厘米之间)。这款技术计算器使计算系统化,让您既不会买得太多,也不会在裁剪到一半时发现面料不够。',
103
- },
104
- {
105
- type: 'title',
106
- text: '缝制一件连衣裙或裤子需要多少布料?',
107
- level: 3,
108
- },
109
- {
110
- type: 'paragraph',
111
- html: '传统的计算方法是基于服装长度加上袖长,再增加见回(贴边)和下摆(折边)的余量。然而,当面料较窄(90-110 厘米)时,样板零件通常无法并排摆放,这就迫使您购买双倍的长度。我们的工具根据纺织工业标准自动考虑了这些变化。',
112
- },
113
- {
114
- type: 'title',
115
- text: '根据布料宽度估计的消耗量(M-L 尺码)',
116
- level: 3,
117
- },
118
- {
119
- type: 'list',
120
- items: [
121
- '<strong>直筒裙:</strong> 90cm 宽幅需要 2.00m · 140/150cm 宽幅需要 1.20m。',
122
- '<strong>长裤:</strong> 90cm 宽幅需要 2.50m · 140/150cm 宽幅需要 1.50m。',
123
- '<strong>长袖衬衫:</strong> 90cm 宽幅需要 2.20m · 140/150cm 宽幅需要 1.40m。',
124
- '<strong>基础连衣裙:</strong> 90cm 宽幅需要 3.50m · 140/150cm 宽幅需要 2.20m。',
125
- ],
126
- },
127
- {
128
- type: 'title',
129
- text: '影响布料消耗的因素',
130
- level: 3,
131
- },
132
- {
133
- type: 'list',
134
- items: [
135
- '<strong>图案方向(排版):</strong> 如果布料有明显方向性的图案或需要对齐的格子,您将需要额外增加 15% 到 20% 的材料。',
136
- '<strong>斜纹方向(斜裁):</strong> 斜裁或圆型裁剪(如圆裙)由于角度造成的损耗,消耗的面料会明显更多。',
137
- '<strong>顺毛方向:</strong> 在天鹅绒或灯芯绒等织物中,所有零件必须向同一个方向裁剪,这限制了空间的优化利用。',
138
- '<strong>缩水:</strong> 许多天然织物(棉、麻、羊毛)在第一次洗涤后会缩水。在裁剪前先对布料进行预缩(预洗)至关重要。',
139
- ],
140
- },
141
- {
142
- type: 'tip',
143
- title: '裁缝贴士',
144
- html: '<p>如果您打算使用大图案或格子(花呢)面料,请不要完全依赖标准尺寸。务必在计算出的总米数上加上一个完整的图案重复周期(花回),以确保样板在侧缝处能够图案对齐。</p>',
145
- },
146
- {
147
- type: 'title',
148
- text: '本计算器的优点与局限性',
149
- level: 3,
150
- },
151
- {
152
- type: 'list',
153
- items: [
154
- '支持多种布料宽度及尺码调整的即时计算。',
155
- '包含可自定义的缝份估计值。',
156
- '提供布料零件排布的视觉指南。',
157
- '不能替代真实的排料(排样)。加大尺码可能需要额外的手动调整。',
158
- ],
159
- },
160
- {
161
- type: 'card',
162
- title: '幅宽',
163
- icon: 'mdi:arrow-expand-horizontal',
164
- html: '布料从<strong>布边到布边</strong>的横向尺寸。决定了样板零件是可以平行放置还是必须串联放置。',
165
- },
166
- {
167
- type: 'card',
168
- title: '缝份',
169
- icon: 'mdi:tape-measure',
170
- html: '样板边缘与<strong>最终缝纫线</strong>之间的距离。服装缝纫的标准值通常为 1.5 厘米。',
171
- },
172
- {
173
- type: 'card',
174
- title: '布边(Selvedge)',
175
- icon: 'mdi:content-cut',
176
- html: '布料两侧经过加固、<strong>不会散边</strong>的部分。它们标示了经向方向,并作为裁剪的参考。',
177
- },
178
- ],
179
- ui: {
180
- sectionProject: '项目',
181
- sectionMaterial: '面料',
182
- labelGarmentType: '服装类型',
183
- labelSize: '尺码',
184
- labelFabricWidth: '布料宽度 (cm)',
185
- labelSeamAllowance: '缝份 (cm)',
186
- garmentSkirt: '裙子 (直筒/A型)',
187
- garmentPants: '裤子',
188
- garmentDress: '连衣裙',
189
- garmentShirt: '衬衫 / 女衬衫',
190
- garmentCoat: '外套 / 夹克',
191
- garmentTote: '帆布包 (Tote Bag)',
192
- garmentMerceria: {
193
- skirt: '1 条 20cm 隐形拉链,1 颗纽扣',
194
- pants: '1 条 20cm 拉链,1 颗纽扣,30cm 粘合衬',
195
- dress: '1 条 60cm 拉链,50cm 粘合衬',
196
- shirt: '7 颗纽扣,1m 薄粘合衬',
197
- coat: '3 颗大纽扣,1.5m 粘合衬,里布',
198
- tote: '2m 提手织带',
199
- },
200
- sizeXS: 'XS-S',
201
- sizeM: 'M-L',
202
- sizeXL: 'XL-XXL',
203
- width90: '90 cm (窄幅)',
204
- width115: '115 cm (拼布常用)',
205
- width140: '140 cm (欧洲标准幅)',
206
- width150: '150 cm (宽幅/装饰用)',
207
- btnClear: '清空',
208
- btnShare: '分享',
209
- btnCopied: '已复制!',
210
- btnCopyList: '复制清单',
211
- resultLabel: '您需要:',
212
- resultUnit: '米',
213
- shopAdviceFormat: '请在商店购买 {m} 米',
214
- boardEmpty: '选择一个项目以查看排布图',
215
- boardDescFormat: '宽度: {w}cm | 长度: {m}m',
216
- merchTitle: '辅料与材料',
217
- checklistThread: '配色缝纫线',
218
- warningSerialFormat: '在 {w}cm 宽的布料上,您该尺码的零件无法并排。消耗量已按串联裁剪调整。',
219
- foldLabel: '⊟ 折叠线',
220
- pieceNames: {
221
- front: '前片',
222
- back: '后片',
223
- waistband: '腰头',
224
- waistbelt: '腰带',
225
- sleeve: '袖子',
226
- collar: '领子',
227
- cuffs: '袖口',
228
- facings: '贴边',
229
- lapels: '挂面',
230
- pocket: '口袋',
231
- body: '包身',
232
- handleA: '提手 A',
233
- handleB: '提手 B',
234
- },
235
- },
236
- };
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import { bibliography } from '../bibliography';
4
+ import type { FabricProjectCalculatorUI } from '../ui';
5
+
6
+ const slug = 'fabric-project-calculator';
7
+ const title = '单件服装布料消耗计算器';
8
+ const description =
9
+ '轻松计算缝制裙子、裤子、连衣裙或衬衫需要多少面料。根据布料宽度和尺码进行调整,实现专业裁剪。';
10
+
11
+ const faqData = [
12
+ {
13
+ question: '缝制一条裙子需要多少布料?',
14
+ answer:
15
+ '这取决于布料的宽度。对于 140-150 厘米宽的面料,缝制一条直筒裙通常 1.20 米就够了。如果面料宽度只有 90-110 厘米,则需要 2.00 米。',
16
+ },
17
+ {
18
+ question: '布料宽度如何影响消耗量?',
19
+ answer:
20
+ '宽度较窄时,样板零件无法并排(平行)放置,因此消耗量通常会翻倍,因为零件必须一个放在另一个下面。',
21
+ },
22
+ {
23
+ question: '买布料时多买一点更好吗?',
24
+ answer:
25
+ '是的,建议预留 10%(约 20 厘米)的余量,以补偿缩水、织物缺陷或意外的缝纫留边。',
26
+ },
27
+ {
28
+ question: '什么是布料的经向(布纹),它有什么影响?',
29
+ answer:
30
+ '它是与布料幅宽边缘(布边)平行的方向。样板必须与该纹理对齐,这样服装在穿着时才不会变形。',
31
+ },
32
+ ];
33
+
34
+ const howToData = [
35
+ {
36
+ name: '选择服装类型',
37
+ text: '选择您要制作的模型(裙子、裤子等)以加载其基础消耗表。',
38
+ },
39
+ {
40
+ name: '输入布料宽度',
41
+ text: '测量您打算购买的布料从布边到布边的宽度(90、115、140 或 150 厘米)。',
42
+ },
43
+ {
44
+ name: '选择尺码',
45
+ text: '根据尺码(XS-S、M-L、XL-XXL)调整服装体积,以重新计算乘数因子。',
46
+ },
47
+ {
48
+ name: '获取总长度',
49
+ text: '检查含缝份和不含缝份的最终结果,以便准确知道在商店里要买多少米。',
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<HowTo> = {
64
+ '@context': 'https://schema.org',
65
+ '@type': 'HowTo',
66
+ name: title,
67
+ description,
68
+ step: howToData.map((step) => ({
69
+ '@type': 'HowToStep',
70
+ name: step.name,
71
+ text: step.text,
72
+ })),
73
+ };
74
+
75
+ const appSchema: WithContext<SoftwareApplication> = {
76
+ '@context': 'https://schema.org',
77
+ '@type': 'SoftwareApplication',
78
+ name: title,
79
+ description,
80
+ applicationCategory: 'UtilityApplication',
81
+ operatingSystem: 'All',
82
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
83
+ inLanguage: 'zh',
84
+ };
85
+
86
+ export const content: ToolLocaleContent<FabricProjectCalculatorUI> = {
87
+ slug,
88
+ title,
89
+ description,
90
+ faq: faqData,
91
+ bibliography: bibliography,
92
+ howTo: howToData,
93
+ schemas: [faqSchema, howToSchema, appSchema],
94
+ seo: [
95
+ {
96
+ type: 'title',
97
+ text: '服装制作布料长度计算器:消耗指南',
98
+ level: 2,
99
+ },
100
+ {
101
+ type: 'paragraph',
102
+ html: '在缝纫工作室中,最常见的疑问之一是确定为一个特定项目购买多少布料。布料消耗量主要取决于三个因素:服装模型、个人尺寸,以及最核心的 - - 布料幅宽(通常在 90 厘米到 150 厘米之间)。这款技术计算器使计算系统化,让您既不会买得太多,也不会在裁剪到一半时发现面料不够。',
103
+ },
104
+ {
105
+ type: 'title',
106
+ text: '缝制一件连衣裙或裤子需要多少布料?',
107
+ level: 3,
108
+ },
109
+ {
110
+ type: 'paragraph',
111
+ html: '传统的计算方法是基于服装长度加上袖长,再增加见回(贴边)和下摆(折边)的余量。然而,当面料较窄(90-110 厘米)时,样板零件通常无法并排摆放,这就迫使您购买双倍的长度。我们的工具根据纺织工业标准自动考虑了这些变化。',
112
+ },
113
+ {
114
+ type: 'title',
115
+ text: '根据布料宽度估计的消耗量(M-L 尺码)',
116
+ level: 3,
117
+ },
118
+ {
119
+ type: 'list',
120
+ items: [
121
+ '<strong>直筒裙:</strong> 90cm 宽幅需要 2.00m · 140/150cm 宽幅需要 1.20m。',
122
+ '<strong>长裤:</strong> 90cm 宽幅需要 2.50m · 140/150cm 宽幅需要 1.50m。',
123
+ '<strong>长袖衬衫:</strong> 90cm 宽幅需要 2.20m · 140/150cm 宽幅需要 1.40m。',
124
+ '<strong>基础连衣裙:</strong> 90cm 宽幅需要 3.50m · 140/150cm 宽幅需要 2.20m。',
125
+ ],
126
+ },
127
+ {
128
+ type: 'title',
129
+ text: '影响布料消耗的因素',
130
+ level: 3,
131
+ },
132
+ {
133
+ type: 'list',
134
+ items: [
135
+ '<strong>图案方向(排版):</strong> 如果布料有明显方向性的图案或需要对齐的格子,您将需要额外增加 15% 到 20% 的材料。',
136
+ '<strong>斜纹方向(斜裁):</strong> 斜裁或圆型裁剪(如圆裙)由于角度造成的损耗,消耗的面料会明显更多。',
137
+ '<strong>顺毛方向:</strong> 在天鹅绒或灯芯绒等织物中,所有零件必须向同一个方向裁剪,这限制了空间的优化利用。',
138
+ '<strong>缩水:</strong> 许多天然织物(棉、麻、羊毛)在第一次洗涤后会缩水。在裁剪前先对布料进行预缩(预洗)至关重要。',
139
+ ],
140
+ },
141
+ {
142
+ type: 'tip',
143
+ title: '裁缝贴士',
144
+ html: '<p>如果您打算使用大图案或格子(花呢)面料,请不要完全依赖标准尺寸。务必在计算出的总米数上加上一个完整的图案重复周期(花回),以确保样板在侧缝处能够图案对齐。</p>',
145
+ },
146
+ {
147
+ type: 'title',
148
+ text: '本计算器的优点与局限性',
149
+ level: 3,
150
+ },
151
+ {
152
+ type: 'list',
153
+ items: [
154
+ '支持多种布料宽度及尺码调整的即时计算。',
155
+ '包含可自定义的缝份估计值。',
156
+ '提供布料零件排布的视觉指南。',
157
+ '不能替代真实的排料(排样)。加大尺码可能需要额外的手动调整。',
158
+ ],
159
+ },
160
+ {
161
+ type: 'card',
162
+ title: '幅宽',
163
+ icon: 'mdi:arrow-expand-horizontal',
164
+ html: '布料从<strong>布边到布边</strong>的横向尺寸。决定了样板零件是可以平行放置还是必须串联放置。',
165
+ },
166
+ {
167
+ type: 'card',
168
+ title: '缝份',
169
+ icon: 'mdi:tape-measure',
170
+ html: '样板边缘与<strong>最终缝纫线</strong>之间的距离。服装缝纫的标准值通常为 1.5 厘米。',
171
+ },
172
+ {
173
+ type: 'card',
174
+ title: '布边(Selvedge)',
175
+ icon: 'mdi:content-cut',
176
+ html: '布料两侧经过加固、<strong>不会散边</strong>的部分。它们标示了经向方向,并作为裁剪的参考。',
177
+ },
178
+ ],
179
+ ui: {
180
+ sectionProject: '项目',
181
+ sectionMaterial: '面料',
182
+ labelGarmentType: '服装类型',
183
+ labelSize: '尺码',
184
+ labelFabricWidth: '布料宽度 (cm)',
185
+ labelSeamAllowance: '缝份 (cm)',
186
+ garmentSkirt: '裙子 (直筒/A型)',
187
+ garmentPants: '裤子',
188
+ garmentDress: '连衣裙',
189
+ garmentShirt: '衬衫 / 女衬衫',
190
+ garmentCoat: '外套 / 夹克',
191
+ garmentTote: '帆布包 (Tote Bag)',
192
+ garmentMerceria: {
193
+ skirt: '1 条 20cm 隐形拉链,1 颗纽扣',
194
+ pants: '1 条 20cm 拉链,1 颗纽扣,30cm 粘合衬',
195
+ dress: '1 条 60cm 拉链,50cm 粘合衬',
196
+ shirt: '7 颗纽扣,1m 薄粘合衬',
197
+ coat: '3 颗大纽扣,1.5m 粘合衬,里布',
198
+ tote: '2m 提手织带',
199
+ },
200
+ sizeXS: 'XS-S',
201
+ sizeM: 'M-L',
202
+ sizeXL: 'XL-XXL',
203
+ width90: '90 cm (窄幅)',
204
+ width115: '115 cm (拼布常用)',
205
+ width140: '140 cm (欧洲标准幅)',
206
+ width150: '150 cm (宽幅/装饰用)',
207
+ btnClear: '清空',
208
+ btnShare: '分享',
209
+ btnCopied: '已复制!',
210
+ btnCopyList: '复制清单',
211
+ resultLabel: '您需要:',
212
+ resultUnit: '米',
213
+ shopAdviceFormat: '请在商店购买 {m} 米',
214
+ boardEmpty: '选择一个项目以查看排布图',
215
+ boardDescFormat: '宽度: {w}cm | 长度: {m}m',
216
+ merchTitle: '辅料与材料',
217
+ checklistThread: '配色缝纫线',
218
+ warningSerialFormat: '在 {w}cm 宽的布料上,您该尺码的零件无法并排。消耗量已按串联裁剪调整。',
219
+ foldLabel: '⊟ 折叠线',
220
+ pieceNames: {
221
+ front: '前片',
222
+ back: '后片',
223
+ waistband: '腰头',
224
+ waistbelt: '腰带',
225
+ sleeve: '袖子',
226
+ collar: '领子',
227
+ cuffs: '袖口',
228
+ facings: '贴边',
229
+ lapels: '挂面',
230
+ pocket: '口袋',
231
+ body: '包身',
232
+ handleA: '提手 A',
233
+ handleB: '提手 B',
234
+ },
235
+ },
236
+ };
@@ -1,15 +1,15 @@
1
- ---
2
- import { SEORenderer } from '@jjlmoya/utils-shared';
3
- import { fabricProjectCalculator } from './index';
4
- import type { KnownLocale } from '../../types';
5
-
6
- interface Props {
7
- locale?: KnownLocale;
8
- }
9
-
10
- const { locale = 'es' } = Astro.props;
11
- const content = await fabricProjectCalculator.i18n[locale]?.();
12
- if (!content) return null;
13
- ---
14
-
15
- {content.seo?.length > 0 && <SEORenderer content={{ locale, sections: content.seo }} />}
1
+ ---
2
+ import { SEORenderer } from '@jjlmoya/utils-shared';
3
+ import { fabricProjectCalculator } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await fabricProjectCalculator.i18n[locale]?.();
12
+ if (!content) return null;
13
+ ---
14
+
15
+ {content.seo?.length > 0 && <SEORenderer content={{ locale, sections: content.seo }} />}