@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,289 +1,289 @@
1
- import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
- import type { ToolLocaleContent } from '../../../types';
3
- import { bibliography } from '../bibliography';
4
- import type { StainChemistryUI } from '../ui';
5
-
6
- const slug = 'stain-chemical-protocol';
7
- const title = 'Stain Chemical Protocol for Textiles';
8
- const description =
9
- 'Scientific protocols to remove stains based on fiber type and the chemical nature of the stain. Percarbonate, enzymes, solvents: the right method for every case.';
10
-
11
- const faqData = [
12
- {
13
- question: 'Can I use bleach instead of percarbonate?',
14
- answer:
15
- 'Bleach (sodium hypochlorite) is highly corrosive. It degrades fibers, turning them yellow and brittle. Percarbonate bleaches via active oxygen, preserving the natural molecular structure.',
16
- },
17
- {
18
- question: 'Why does vinegar help with odors?',
19
- answer:
20
- 'Body odors are typically alkaline. The acetic acid in vinegar neutralizes them, converting them into odorless salts that are completely removed during rinsing.',
21
- },
22
- {
23
- question: 'Should I always use cold water for blood?',
24
- answer:
25
- 'Yes. Heat coagulates the proteins in blood, permanently bonding them to the fiber. Cold water keeps the stain in a soluble state and allows enzymatic agents to work effectively.',
26
- },
27
- {
28
- question: 'What happens if I apply acetone to an acetate garment?',
29
- answer:
30
- 'Acetone dissolves triacetate and acetate. Acetate fibers are cellulose esterified with acetic acid and are completely soluble in acetone. The result would be irreversible destruction of the fabric.',
31
- },
32
- ];
33
-
34
- const howToData = [
35
- {
36
- name: 'Identify the fiber type',
37
- text: 'Check the inner label of the garment to know if it is a natural, synthetic, or noble fiber (wool, silk, cashmere).',
38
- },
39
- {
40
- name: 'Select the fiber in the tool',
41
- text: 'Choose the corresponding material in the first selector.',
42
- },
43
- {
44
- name: 'Select the stain type',
45
- text: 'Indicate whether the stain is organic (wine, fruit), protein-based (blood), greasy, or synthetic (ink).',
46
- },
47
- {
48
- name: 'Apply the indicated protocol',
49
- text: 'Follow the instructions for agent, temperature, and method. Pay special attention to critical warning notices.',
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: 'en',
84
- };
85
-
86
- export const content: ToolLocaleContent<StainChemistryUI> = {
87
- slug,
88
- title,
89
- description,
90
- ui: {
91
- toolTitle: 'Stain Chemical Protocol',
92
- fiberLabel: '1. Fiber',
93
- selectFiberPlaceholder: 'Select the fabric...',
94
- stainLabel: '2. Stain',
95
- selectStainPlaceholder: 'What happened?',
96
- molecularDiagnosis: 'Molecular Diagnosis',
97
- requiredAgent: 'Required Agent',
98
- thermalCondition: 'Thermal Condition',
99
- temperature: 'Temperature',
100
- cleaningInstructions: 'Cleaning Instructions',
101
- criticalWarning: 'Critical Warning',
102
- criticalWarningLabel: 'WARNING',
103
- technicalNote: 'Technical note',
104
- technicalNoteText:
105
- 'Always validate dye fastness on a hidden area before proceeding with the full chemical treatment.',
106
- systemDiagnosis: 'Diagnosis System',
107
- systemDiagnosisDesc: 'Configure the textile parameters to get the cleaning roadmap',
108
- delicatePercarbonateWarning:
109
- 'RISK OF MOLECULAR DEGRADATION. Animal fibers are highly sensitive to percarbonate. Test on a hidden area first.',
110
- fiberData: {
111
- cotton: { name: 'Cotton', family: 'natural', isNoble: false },
112
- linen: { name: 'Linen', family: 'natural', isNoble: true },
113
- wool: { name: 'Wool / Merino', family: 'natural', isNoble: true },
114
- silk: { name: 'Silk', family: 'natural', isNoble: true },
115
- cashmere: { name: 'Cashmere', family: 'natural', isNoble: true },
116
- mohair: { name: 'Mohair', family: 'natural', isNoble: true },
117
- angora: { name: 'Angora', family: 'natural', isNoble: true },
118
- alpaca: { name: 'Alpaca', family: 'natural', isNoble: true },
119
- polyester: { name: 'Polyester', family: 'synthetic', isNoble: false },
120
- viscose: { name: 'Viscose / Rayon', family: 'artificial', isNoble: false },
121
- nylon: { name: 'Nylon (Polyamide)', family: 'synthetic', isNoble: false },
122
- acrylic: { name: 'Acrylic', family: 'synthetic', isNoble: false },
123
- },
124
- agents: {
125
- percarbonate: {
126
- name: 'Sodium Percarbonate',
127
- description: 'Biodegradable oxygen-based bleach. Releases active oxygen when dissolved.',
128
- warning: 'Avoid on protein fibers (silk, wool) at high concentrations.',
129
- },
130
- isopropyl: {
131
- name: 'Isopropyl Alcohol',
132
- description: 'Effective solvent for pigments and light grease.',
133
- warning: 'Can damage the sheen of silk and dissolve some acrylics if not diluted.',
134
- },
135
- acetone: {
136
- name: 'Acetone',
137
- description: 'Powerful solvent for nail polish and adhesives.',
138
- warning: 'FORBIDDEN on acetates and triacetates (dissolves the fiber).',
139
- },
140
- enzyme: {
141
- name: 'Enzymatic Detergent',
142
- description: 'Contains proteases that break down biological stains.',
143
- warning: 'Use with caution on wool and silk (they are proteins).',
144
- },
145
- vinegar: {
146
- name: 'White Vinegar',
147
- description: 'Mild acetic acid to neutralize odors and fix colors.',
148
- },
149
- },
150
- stains: [
151
- {
152
- id: 'wine',
153
- name: 'Red Wine / Fruit',
154
- protocols: {
155
- natural: { agentId: 'percarbonate', temperature: '40-60°C', method: 'Extended soak' },
156
- synthetic: { agentId: 'percarbonate', temperature: '40°C', method: 'Direct paste' },
157
- delicate: {
158
- agentId: 'vinegar',
159
- temperature: 'Cold',
160
- method: 'Rinse with sparkling water and vinegar',
161
- notes: 'Do not rub',
162
- },
163
- },
164
- },
165
- {
166
- id: 'blood',
167
- name: 'Blood',
168
- protocols: {
169
- natural: {
170
- agentId: 'enzyme',
171
- temperature: 'Cold',
172
- method: 'Soak in salted water then apply enzyme',
173
- },
174
- synthetic: { agentId: 'enzyme', temperature: 'Cold', method: 'Direct application' },
175
- delicate: {
176
- agentId: 'vinegar',
177
- temperature: 'Cold',
178
- method: 'Immediate rinse, avoid heat',
179
- },
180
- },
181
- },
182
- {
183
- id: 'grease',
184
- name: 'Grease / Oil',
185
- protocols: {
186
- natural: {
187
- agentId: 'isopropyl',
188
- temperature: '40°C',
189
- method: 'Dissolve with alcohol then wash',
190
- },
191
- synthetic: {
192
- agentId: 'isopropyl',
193
- temperature: '40°C',
194
- method: 'Place absorbent paper underneath',
195
- },
196
- delicate: {
197
- agentId: 'isopropyl',
198
- temperature: 'Cold',
199
- method: 'Dilute alcohol to 50%',
200
- },
201
- },
202
- },
203
- {
204
- id: 'ink',
205
- name: 'Ink / Marker',
206
- protocols: {
207
- natural: {
208
- agentId: 'isopropyl',
209
- temperature: 'Room temp',
210
- method: 'Dab from outside inward',
211
- },
212
- synthetic: {
213
- agentId: 'isopropyl',
214
- temperature: 'Room temp',
215
- method: 'Caution with spreading',
216
- },
217
- delicate: {
218
- agentId: 'isopropyl',
219
- temperature: 'Cold',
220
- method: 'Dilute and test on hidden area',
221
- },
222
- },
223
- },
224
- ],
225
- },
226
- seo: [
227
- {
228
- type: 'title',
229
- text: 'The Chemistry Behind Textile Cleaning',
230
- level: 2,
231
- },
232
- {
233
- type: 'paragraph',
234
- html: 'Not all stains are the same, and not all fibers react the same way to the same chemical agents. The difference between saving a garment and ruining it lies in understanding the molecular nature of the stain and the structure of the fiber.',
235
- },
236
- {
237
- type: 'card',
238
- title: '01: Controlled Oxidation',
239
- icon: 'mdi:atom',
240
- html: '<strong>Sodium percarbonate</strong> releases active oxygen that breaks the double bonds of chromophores (the molecules responsible for the stain\'s color), rendering them colorless and water-soluble. It is the most effective method for organic stains.',
241
- },
242
- {
243
- type: 'card',
244
- title: '02: Solubilization by Solvents',
245
- icon: 'mdi:flask-outline',
246
- html: 'Stains like oil or ink are not water-soluble. Solvents such as <strong>isopropyl alcohol</strong> or <strong>acetone</strong> reduce surface tension and attract the non-polar molecules of the stain, allowing them to be transferred to a support medium.',
247
- },
248
- {
249
- type: 'title',
250
- text: 'Fiber Sovereignty: Why Fiber Type Matters',
251
- level: 2,
252
- },
253
- {
254
- type: 'paragraph',
255
- html: 'Not all fibers "eat" the same way. <strong>Silk and wool</strong> are proteins (fibroin and keratin). If you apply an enzymatic detergent designed to "eat proteins" (blood or egg stains) without control, the detergent will start to degrade the fiber itself, destroying its sheen and the fabric\'s structure.',
256
- },
257
- {
258
- type: 'title',
259
- text: 'The Danger of Heat',
260
- level: 2,
261
- },
262
- {
263
- type: 'paragraph',
264
- html: 'One of the most common mistakes is using hot water to "soften" a blood stain. Chemically, heat causes the <strong>coagulation of the proteins</strong> in the stain, permanently bonding them to the porous structure of the fiber. Protein stains must always be treated with cold water.',
265
- },
266
- {
267
- type: 'tip',
268
- title: 'Emergency Protocol: Red Wine',
269
- html: '<strong>A. Passive absorption:</strong> Blot with absorbent paper, never rub to avoid mechanical spreading.<br><strong>B. Osmotic neutralization:</strong> Cover with fine salt to draw the liquid out from the core of the fiber.<br><strong>C. Chemical action:</strong> Apply a paste of percarbonate and water at 40°C if the fiber is heat-resistant.',
270
- },
271
- {
272
- type: 'title',
273
- text: 'Specific Solvents and Precautions',
274
- level: 2,
275
- },
276
- {
277
- type: 'paragraph',
278
- html: '<strong>Acetone</strong> is an exceptional solvent for nail polish or adhesives, but it is destructive to <strong>acetate</strong> fabric. As fibers derived from cellulose but chemically treated, acetone literally dissolves the fabric.',
279
- },
280
- {
281
- type: 'paragraph',
282
- html: '<strong>Isopropyl alcohol</strong> is more stable, but on dyed synthetics it can carry away the pigment itself. We always recommend the "hem test" on a hidden area before the main treatment.',
283
- },
284
- ],
285
- faq: faqData,
286
- bibliography: bibliography,
287
- howTo: howToData,
288
- schemas: [faqSchema, howToSchema, appSchema],
289
- };
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import { bibliography } from '../bibliography';
4
+ import type { StainChemistryUI } from '../ui';
5
+
6
+ const slug = 'stain-chemical-protocol';
7
+ const title = 'Stain Chemical Protocol for Textiles';
8
+ const description =
9
+ 'Scientific protocols to remove stains based on fiber type and the chemical nature of the stain. Percarbonate, enzymes, solvents: the right method for every case.';
10
+
11
+ const faqData = [
12
+ {
13
+ question: 'Can I use bleach instead of percarbonate?',
14
+ answer:
15
+ 'Bleach (sodium hypochlorite) is highly corrosive. It degrades fibers, turning them yellow and brittle. Percarbonate bleaches via active oxygen, preserving the natural molecular structure.',
16
+ },
17
+ {
18
+ question: 'Why does vinegar help with odors?',
19
+ answer:
20
+ 'Body odors are typically alkaline. The acetic acid in vinegar neutralizes them, converting them into odorless salts that are completely removed during rinsing.',
21
+ },
22
+ {
23
+ question: 'Should I always use cold water for blood?',
24
+ answer:
25
+ 'Yes. Heat coagulates the proteins in blood, permanently bonding them to the fiber. Cold water keeps the stain in a soluble state and allows enzymatic agents to work effectively.',
26
+ },
27
+ {
28
+ question: 'What happens if I apply acetone to an acetate garment?',
29
+ answer:
30
+ 'Acetone dissolves triacetate and acetate. Acetate fibers are cellulose esterified with acetic acid and are completely soluble in acetone. The result would be irreversible destruction of the fabric.',
31
+ },
32
+ ];
33
+
34
+ const howToData = [
35
+ {
36
+ name: 'Identify the fiber type',
37
+ text: 'Check the inner label of the garment to know if it is a natural, synthetic, or noble fiber (wool, silk, cashmere).',
38
+ },
39
+ {
40
+ name: 'Select the fiber in the tool',
41
+ text: 'Choose the corresponding material in the first selector.',
42
+ },
43
+ {
44
+ name: 'Select the stain type',
45
+ text: 'Indicate whether the stain is organic (wine, fruit), protein-based (blood), greasy, or synthetic (ink).',
46
+ },
47
+ {
48
+ name: 'Apply the indicated protocol',
49
+ text: 'Follow the instructions for agent, temperature, and method. Pay special attention to critical warning notices.',
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: 'en',
84
+ };
85
+
86
+ export const content: ToolLocaleContent<StainChemistryUI> = {
87
+ slug,
88
+ title,
89
+ description,
90
+ ui: {
91
+ toolTitle: 'Stain Chemical Protocol',
92
+ fiberLabel: '1. Fiber',
93
+ selectFiberPlaceholder: 'Select the fabric...',
94
+ stainLabel: '2. Stain',
95
+ selectStainPlaceholder: 'What happened?',
96
+ molecularDiagnosis: 'Molecular Diagnosis',
97
+ requiredAgent: 'Required Agent',
98
+ thermalCondition: 'Thermal Condition',
99
+ temperature: 'Temperature',
100
+ cleaningInstructions: 'Cleaning Instructions',
101
+ criticalWarning: 'Critical Warning',
102
+ criticalWarningLabel: 'WARNING',
103
+ technicalNote: 'Technical note',
104
+ technicalNoteText:
105
+ 'Always validate dye fastness on a hidden area before proceeding with the full chemical treatment.',
106
+ systemDiagnosis: 'Diagnosis System',
107
+ systemDiagnosisDesc: 'Configure the textile parameters to get the cleaning roadmap',
108
+ delicatePercarbonateWarning:
109
+ 'RISK OF MOLECULAR DEGRADATION. Animal fibers are highly sensitive to percarbonate. Test on a hidden area first.',
110
+ fiberData: {
111
+ cotton: { name: 'Cotton', family: 'natural', isNoble: false },
112
+ linen: { name: 'Linen', family: 'natural', isNoble: true },
113
+ wool: { name: 'Wool / Merino', family: 'natural', isNoble: true },
114
+ silk: { name: 'Silk', family: 'natural', isNoble: true },
115
+ cashmere: { name: 'Cashmere', family: 'natural', isNoble: true },
116
+ mohair: { name: 'Mohair', family: 'natural', isNoble: true },
117
+ angora: { name: 'Angora', family: 'natural', isNoble: true },
118
+ alpaca: { name: 'Alpaca', family: 'natural', isNoble: true },
119
+ polyester: { name: 'Polyester', family: 'synthetic', isNoble: false },
120
+ viscose: { name: 'Viscose / Rayon', family: 'artificial', isNoble: false },
121
+ nylon: { name: 'Nylon (Polyamide)', family: 'synthetic', isNoble: false },
122
+ acrylic: { name: 'Acrylic', family: 'synthetic', isNoble: false },
123
+ },
124
+ agents: {
125
+ percarbonate: {
126
+ name: 'Sodium Percarbonate',
127
+ description: 'Biodegradable oxygen-based bleach. Releases active oxygen when dissolved.',
128
+ warning: 'Avoid on protein fibers (silk, wool) at high concentrations.',
129
+ },
130
+ isopropyl: {
131
+ name: 'Isopropyl Alcohol',
132
+ description: 'Effective solvent for pigments and light grease.',
133
+ warning: 'Can damage the sheen of silk and dissolve some acrylics if not diluted.',
134
+ },
135
+ acetone: {
136
+ name: 'Acetone',
137
+ description: 'Powerful solvent for nail polish and adhesives.',
138
+ warning: 'FORBIDDEN on acetates and triacetates (dissolves the fiber).',
139
+ },
140
+ enzyme: {
141
+ name: 'Enzymatic Detergent',
142
+ description: 'Contains proteases that break down biological stains.',
143
+ warning: 'Use with caution on wool and silk (they are proteins).',
144
+ },
145
+ vinegar: {
146
+ name: 'White Vinegar',
147
+ description: 'Mild acetic acid to neutralize odors and fix colors.',
148
+ },
149
+ },
150
+ stains: [
151
+ {
152
+ id: 'wine',
153
+ name: 'Red Wine / Fruit',
154
+ protocols: {
155
+ natural: { agentId: 'percarbonate', temperature: '40-60°C', method: 'Extended soak' },
156
+ synthetic: { agentId: 'percarbonate', temperature: '40°C', method: 'Direct paste' },
157
+ delicate: {
158
+ agentId: 'vinegar',
159
+ temperature: 'Cold',
160
+ method: 'Rinse with sparkling water and vinegar',
161
+ notes: 'Do not rub',
162
+ },
163
+ },
164
+ },
165
+ {
166
+ id: 'blood',
167
+ name: 'Blood',
168
+ protocols: {
169
+ natural: {
170
+ agentId: 'enzyme',
171
+ temperature: 'Cold',
172
+ method: 'Soak in salted water then apply enzyme',
173
+ },
174
+ synthetic: { agentId: 'enzyme', temperature: 'Cold', method: 'Direct application' },
175
+ delicate: {
176
+ agentId: 'vinegar',
177
+ temperature: 'Cold',
178
+ method: 'Immediate rinse, avoid heat',
179
+ },
180
+ },
181
+ },
182
+ {
183
+ id: 'grease',
184
+ name: 'Grease / Oil',
185
+ protocols: {
186
+ natural: {
187
+ agentId: 'isopropyl',
188
+ temperature: '40°C',
189
+ method: 'Dissolve with alcohol then wash',
190
+ },
191
+ synthetic: {
192
+ agentId: 'isopropyl',
193
+ temperature: '40°C',
194
+ method: 'Place absorbent paper underneath',
195
+ },
196
+ delicate: {
197
+ agentId: 'isopropyl',
198
+ temperature: 'Cold',
199
+ method: 'Dilute alcohol to 50%',
200
+ },
201
+ },
202
+ },
203
+ {
204
+ id: 'ink',
205
+ name: 'Ink / Marker',
206
+ protocols: {
207
+ natural: {
208
+ agentId: 'isopropyl',
209
+ temperature: 'Room temp',
210
+ method: 'Dab from outside inward',
211
+ },
212
+ synthetic: {
213
+ agentId: 'isopropyl',
214
+ temperature: 'Room temp',
215
+ method: 'Caution with spreading',
216
+ },
217
+ delicate: {
218
+ agentId: 'isopropyl',
219
+ temperature: 'Cold',
220
+ method: 'Dilute and test on hidden area',
221
+ },
222
+ },
223
+ },
224
+ ],
225
+ },
226
+ seo: [
227
+ {
228
+ type: 'title',
229
+ text: 'The Chemistry Behind Textile Cleaning',
230
+ level: 2,
231
+ },
232
+ {
233
+ type: 'paragraph',
234
+ html: 'Not all stains are the same, and not all fibers react the same way to the same chemical agents. The difference between saving a garment and ruining it lies in understanding the molecular nature of the stain and the structure of the fiber.',
235
+ },
236
+ {
237
+ type: 'card',
238
+ title: '01: Controlled Oxidation',
239
+ icon: 'mdi:atom',
240
+ html: '<strong>Sodium percarbonate</strong> releases active oxygen that breaks the double bonds of chromophores (the molecules responsible for the stain\'s color), rendering them colorless and water-soluble. It is the most effective method for organic stains.',
241
+ },
242
+ {
243
+ type: 'card',
244
+ title: '02: Solubilization by Solvents',
245
+ icon: 'mdi:flask-outline',
246
+ html: 'Stains like oil or ink are not water-soluble. Solvents such as <strong>isopropyl alcohol</strong> or <strong>acetone</strong> reduce surface tension and attract the non-polar molecules of the stain, allowing them to be transferred to a support medium.',
247
+ },
248
+ {
249
+ type: 'title',
250
+ text: 'Fiber Sovereignty: Why Fiber Type Matters',
251
+ level: 2,
252
+ },
253
+ {
254
+ type: 'paragraph',
255
+ html: 'Not all fibers "eat" the same way. <strong>Silk and wool</strong> are proteins (fibroin and keratin). If you apply an enzymatic detergent designed to "eat proteins" (blood or egg stains) without control, the detergent will start to degrade the fiber itself, destroying its sheen and the fabric\'s structure.',
256
+ },
257
+ {
258
+ type: 'title',
259
+ text: 'The Danger of Heat',
260
+ level: 2,
261
+ },
262
+ {
263
+ type: 'paragraph',
264
+ html: 'One of the most common mistakes is using hot water to "soften" a blood stain. Chemically, heat causes the <strong>coagulation of the proteins</strong> in the stain, permanently bonding them to the porous structure of the fiber. Protein stains must always be treated with cold water.',
265
+ },
266
+ {
267
+ type: 'tip',
268
+ title: 'Emergency Protocol: Red Wine',
269
+ html: '<strong>A. Passive absorption:</strong> Blot with absorbent paper, never rub to avoid mechanical spreading.<br><strong>B. Osmotic neutralization:</strong> Cover with fine salt to draw the liquid out from the core of the fiber.<br><strong>C. Chemical action:</strong> Apply a paste of percarbonate and water at 40°C if the fiber is heat-resistant.',
270
+ },
271
+ {
272
+ type: 'title',
273
+ text: 'Specific Solvents and Precautions',
274
+ level: 2,
275
+ },
276
+ {
277
+ type: 'paragraph',
278
+ html: '<strong>Acetone</strong> is an exceptional solvent for nail polish or adhesives, but it is destructive to <strong>acetate</strong> fabric. As fibers derived from cellulose but chemically treated, acetone literally dissolves the fabric.',
279
+ },
280
+ {
281
+ type: 'paragraph',
282
+ html: '<strong>Isopropyl alcohol</strong> is more stable, but on dyed synthetics it can carry away the pigment itself. We always recommend the "hem test" on a hidden area before the main treatment.',
283
+ },
284
+ ],
285
+ faq: faqData,
286
+ bibliography: bibliography,
287
+ howTo: howToData,
288
+ schemas: [faqSchema, howToSchema, appSchema],
289
+ };