Compare commits
5 Commits
f35bb0afde
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 4ac89d6b0f | |||
| 4274c215ca | |||
| 4c79d7c6e4 | |||
| 2e997ff366 | |||
| f647e0cd6d |
39
.cursor/skills/commit-messages/SKILL.md
Normal file
39
.cursor/skills/commit-messages/SKILL.md
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
---
|
||||||
|
name: commit-messages
|
||||||
|
description: >-
|
||||||
|
Write short git commit messages, preferably under 20 words. Use when drafting
|
||||||
|
commits, writing commit messages, amending commits, or creating pull request
|
||||||
|
titles and summaries.
|
||||||
|
---
|
||||||
|
|
||||||
|
# Commit Messages
|
||||||
|
|
||||||
|
Keep commit messages **short**. Prefer **under 20 words** total.
|
||||||
|
|
||||||
|
## Rules
|
||||||
|
|
||||||
|
1. **One line** — subject only; no body unless the user asks for one.
|
||||||
|
2. **Imperative mood** — "Add table", not "Added table" or "Adds table".
|
||||||
|
3. **Say what changed** — lead with the action; drop filler ("this commit", "in order to").
|
||||||
|
4. **No lists** — one change per commit when possible; if many changes, summarize the main one.
|
||||||
|
5. **Count words** before committing; trim if over 20.
|
||||||
|
|
||||||
|
## Format
|
||||||
|
|
||||||
|
```
|
||||||
|
<verb> <what> [<optional context>]
|
||||||
|
```
|
||||||
|
|
||||||
|
Optional conventional prefix when it helps: `feat:`, `fix:`, `refactor:`, `docs:`.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
| Bad (too long) | Good |
|
||||||
|
|---|---|
|
||||||
|
| Add structured tables for test conditions and ink formula in product test template. | Add horizontal ink formula table |
|
||||||
|
| Refactor templates for consistency and clarity across travel and product test reports. | Align product test header with travel template |
|
||||||
|
| Update README to reflect new templates and usage examples for both report types. | Update README with template examples |
|
||||||
|
|
||||||
|
## PR titles
|
||||||
|
|
||||||
|
Apply the same limit to PR titles. PR body can be slightly longer but keep the summary to 1–3 short bullets.
|
||||||
49
.cursor/skills/tinymist/SKILL.md
Normal file
49
.cursor/skills/tinymist/SKILL.md
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
---
|
||||||
|
name: tinymist
|
||||||
|
description: >-
|
||||||
|
Compile and check Typst documents in this project with tinymist, not typst-cli.
|
||||||
|
Use when compiling .typ files, checking Typst errors, or validating report output.
|
||||||
|
---
|
||||||
|
|
||||||
|
# Use Tinymist for Typst
|
||||||
|
|
||||||
|
Always use **tinymist**, never `typst` CLI. Do not download or install typst.
|
||||||
|
|
||||||
|
## Binary
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/home/diaco/.local/bin/tinymist
|
||||||
|
```
|
||||||
|
|
||||||
|
Fallback: `tinymist` if on PATH.
|
||||||
|
|
||||||
|
## Compile
|
||||||
|
|
||||||
|
From project root:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
tinymist compile --font-path template_files main.typ main.pdf
|
||||||
|
```
|
||||||
|
|
||||||
|
Other entry points:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
tinymist compile --font-path template_files main.travel-report-example.typ
|
||||||
|
tinymist compile --font-path template_files main.product-test-example.typ
|
||||||
|
```
|
||||||
|
|
||||||
|
Always pass `--font-path template_files` (fonts: `IRNazanin`, `IRZar`).
|
||||||
|
|
||||||
|
## Check errors
|
||||||
|
|
||||||
|
Use `tinymist compile` — errors print to stderr. For a quick pass/fail:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
tinymist test main.typ
|
||||||
|
```
|
||||||
|
|
||||||
|
## Do not
|
||||||
|
|
||||||
|
- Run `typst compile`
|
||||||
|
- Download typst from GitHub releases
|
||||||
|
- Install typst via cargo unless the user explicitly asks
|
||||||
@@ -26,9 +26,10 @@
|
|||||||
"۹",
|
"۹",
|
||||||
"Esmaltes",
|
"Esmaltes",
|
||||||
)
|
)
|
||||||
|
|
||||||
\
|
\
|
||||||
== نمونه دریافتی
|
== نمونههای دریافت شده
|
||||||
\
|
|
||||||
#received_samples_table((
|
#received_samples_table((
|
||||||
("پیگمنت زرد", "CLCE-539/1", "PI-Y36", "2"),
|
("پیگمنت زرد", "CLCE-539/1", "PI-Y36", "2"),
|
||||||
("پیگمنت قهوهای", "CLCE-539/2", "PI-DBR3", "3"),
|
("پیگمنت قهوهای", "CLCE-539/2", "PI-DBR3", "3"),
|
||||||
@@ -40,71 +41,84 @@
|
|||||||
("پیگمنت مشکی", "CLCE-539/8", "PI-BK39", "9"),
|
("پیگمنت مشکی", "CLCE-539/8", "PI-BK39", "9"),
|
||||||
("پیگمنت صورتی", "CLCE-539/9", "PI-P26", "10"),
|
("پیگمنت صورتی", "CLCE-539/9", "PI-P26", "10"),
|
||||||
))
|
))
|
||||||
|
\
|
||||||
|
|
||||||
|
#colbreak()
|
||||||
== تستهای انجام شده
|
== تستهای انجام شده
|
||||||
با استفاده از این پیگمنتها نمونه جوهر ساخته شد و در کنار نمونه آزمایشگاهی ساخته شده با پیگمنت استاندارد کیمیا رازی به صورت قطرهای روی سه لعاب مختلف و در دماهای مختلف پخت (۱۰۳۰، ۱۱۵۰ و ۱۱۸۰ درجه سانتیگراد) و روی لعابهای براق و مات تست شد.
|
با استفاده از این پیگمنتها نمونه جوهر ساخته و در کنار نمونه آزمایشگاهی ساخته شده با پیگمنت استاندارد کیمیا رازی با شرایط زیر تست شد.
|
||||||
|
- روش اعمال: قطرهای
|
||||||
فرمول نمونه جوهر بر اساس درصد وزنی به صورت زیر است:
|
- لعاب: سه لعاب مختلف (براق و مات)
|
||||||
#align(left)[#text(lang: "en")[
|
- دمای پخت: ۱۰۳۰، ۱۱۵۰ و ۱۱۸۰ °C
|
||||||
- Pigment: 30
|
- مرجع مقایسه: پیگمنت استاندارد کیمیا رازی
|
||||||
- Sol-1: 60
|
\
|
||||||
- Super Disp.: 10
|
فرمول نمونه جوهر بر اساس درصد وزنی:
|
||||||
]]
|
#ink_formula_table((
|
||||||
|
("پیگمنت", 30),
|
||||||
|
("حلال", 60),
|
||||||
|
("دیسپرسانت", 10),
|
||||||
|
))
|
||||||
|
\
|
||||||
تستها شامل:
|
تستها شامل:
|
||||||
- بررسی کیفیت سطح
|
- بررسی کیفیت سطح
|
||||||
- شدت رنگ
|
- شدت رنگ
|
||||||
- تم رنگ
|
- تم رنگ
|
||||||
// تست پایداری جوهر در مقابل رسوبگذاری و تهنشینی نیز انجام شده است.
|
// تست پایداری جوهر در مقابل رسوبگذاری و تهنشینی نیز انجام شده است.
|
||||||
#colbreak()
|
#colbreak()
|
||||||
|
\
|
||||||
== نتایج تستها
|
== نتایج تستها
|
||||||
وضعیت نمونههای پیگمنت تست شده در مقایسه با نمونه استاندارد کیمیا رازی:
|
// وضعیت نمونههای پیگمنت تست شده در مقایسه با نمونه استاندارد کیمیا رازی:
|
||||||
#columns(2, gutter: 8pt)[
|
#columns(2, gutter: 8pt)[
|
||||||
#pigment_result_block("پیگمنت زرد", (
|
#pigment_result_block("پیگمنت زرد", (
|
||||||
([*معیار*], [*CLCE-539/1*]),
|
([*معیار*], [*CLCE-539/1*]),
|
||||||
([کیفیت سطح], [خوب]),
|
([کیفیت سطح], [خوب]),
|
||||||
([تم رنگ], [خوب]),
|
([تم رنگ], [چرک]),
|
||||||
([شدت رنگ], [کمتر (L\*: +1.0)]),
|
([شدت رنگ], [خوب]),
|
||||||
([نتیجه نهایی], [نامناسب]),
|
([نتیجه نهایی], [نامناسب (تم چرک)]),
|
||||||
))
|
))
|
||||||
\
|
|
||||||
#pigment_result_block("پیگمنت قهوهای", (
|
#pigment_result_block("پیگمنت قهوهای", (
|
||||||
([*معیار*], [*CLCE-539/2*]),
|
([*معیار*], [*CLCE-539/2*]),
|
||||||
([کیفیت سطح], [خوب]),
|
([کیفیت سطح], [خوب]),
|
||||||
([تم رنگ], [خوب]),
|
([تم رنگ], [خوب]),
|
||||||
([شدت رنگ], [خوب]),
|
([شدت رنگ], [کمتر]),
|
||||||
([نتیجه نهایی], [مناسب]),
|
([نتیجه نهایی], [نامناسب (شدت رنگ کمتر)]),
|
||||||
))
|
))
|
||||||
\
|
\
|
||||||
#pigment_result_block("پیگمنت بژ", (
|
#pigment_result_block("پیگمنت بژ", (
|
||||||
([*معیار*], [*CLCE-539/3*], [*CLCE-539/4*]),
|
([*معیار*], [*CLCE-539/3*], [*CLCE-539/4*]),
|
||||||
([کیفیت سطح], [خوب], []),
|
([کیفیت سطح], [خوب], [خوب]),
|
||||||
([تم رنگ], [خوب], []),
|
([تم رنگ], [خوب], [خوب]),
|
||||||
([شدت رنگ], [کمتر (L\*: +1.3)], []),
|
([شدت رنگ], [خوب], [خوب]),
|
||||||
([نتیجه نهایی], [نامناسب], []),
|
([نتیجه نهایی], [متفاوت از رفرنس], [متفاوت از رفرنس]),
|
||||||
))
|
))
|
||||||
\
|
|
||||||
#pigment_result_block("پیگمنت آبی", (
|
#pigment_result_block("پیگمنت آبی", (
|
||||||
([*معیار*], [*CLCE-539/5*], [*CLCE-539/6*]),
|
([*معیار*], [*CLCE-539/5*], [*CLCE-539/6*]),
|
||||||
([کیفیت سطح], [خوب], [خوب]),
|
([کیفیت سطح], [خوب], [خوب]),
|
||||||
([تم رنگ], [خوب], [خوب]),
|
([تم رنگ], [خوب], [تم سایان]),
|
||||||
([شدت رنگ], [کمتر (L\*: +2.5)], [خوب]),
|
([شدت رنگ], [کمتر], [خوب]),
|
||||||
([نتیجه نهایی], [نامناسب], [خوب]),
|
([نتیجه نهایی], [نامناسب (شدت رنگ کمتر)], [مناسب برای سایان]),
|
||||||
))
|
))
|
||||||
\
|
\
|
||||||
#pigment_result_block("پیگمنت مشکی", (
|
#pigment_result_block("پیگمنت مشکی", (
|
||||||
([*معیار*], [*CLCE-539/7*], [*CLCE-539/8*]),
|
([*معیار*], [*CLCE-539/7*], [*CLCE-539/8*]),
|
||||||
([کیفیت سطح], [خوب], []),
|
([کیفیت سطح], [خوب], [خوب]),
|
||||||
([تم رنگ], [خوب], []),
|
([تم رنگ], [قهوهای], [خوب]),
|
||||||
([شدت رنگ], [خوب], []),
|
([شدت رنگ], [کمتر], [کمتر]),
|
||||||
([نتیجه نهایی], [مناسب], []),
|
([نتیجه نهایی], [نامناسب (شدت رنگ کمتر)], [نامناسب (شدت رنگ کمتر)]),
|
||||||
))
|
))
|
||||||
\
|
\
|
||||||
=== پیگمنت صورتی (CLCE-539/9 / PI-P26)
|
=== پیگمنت صورتی
|
||||||
به دلیل موجود کافی در انبار تست این پیگمنت به زمان دیگری موکول شد.
|
به دلیل موجود کافی در انبار تست این پیگمنت به زمان دیگری موکول شد.
|
||||||
]
|
]
|
||||||
|
\
|
||||||
== جمع بندی نتايج
|
== جمع بندی نتايج
|
||||||
- پیگمنت قهوهای شرکت کلوبیا مشابه پیگمنت استاندارد کیمیا رازی بوده و در نتیجه نهایی نیز مناسب ارزیابی شد. این نمونه ممکن است برای تست صنعتی در نظر گرفته شود.
|
- بین پیگمنتهای بژ، نمونه CLCE-539/3 مشابه پیگمنت OC860A و نمونه CLCE-539/4 زردتر از آن است.
|
||||||
- پیگمنت آبی به دلیل شدت رنگ پایین، زرد به دلیل تم چرک و بژ به دلیل شدت رنگ پایین و تم زرد مورد تأیید نیستند.
|
- در پیگمنتهای آبی، نمونه CLCE539/5 مشابه کد ICK12/K315 و نمونه CLCE539/6 دارای تم سایان است.
|
||||||
- به نظر میرسد که این پیگمنتها با پیگمنتهای ارسالی با کد مشابه از شرکت یسنا ملل آرمای یکسان هستند.
|
|
||||||
|
\
|
||||||
== پیشنهادات
|
== پیشنهادات
|
||||||
پیگمنت قهوهای با کد ۷۰۳ برای انجام تست صنعتی پیشنهاد میشود.
|
هیچ کدام از پیگمنتها برای انجام تست صنعتی در نظر گرفته نشد ولی در صورت بروز مشکل در تأمین پیگمنتهای مصرفی کنونی، میتوان این نمونهها را به عنوان کاندید جایگزینی در نظر گرفت.
|
||||||
|
\
|
||||||
|
\
|
||||||
|
== نظر مدیر کارخانه
|
||||||
|
|||||||
@@ -9,15 +9,27 @@
|
|||||||
// Email: dyaco8464@yahoo.com
|
// Email: dyaco8464@yahoo.com
|
||||||
///////////////////////////////
|
///////////////////////////////
|
||||||
|
|
||||||
|
#let fonts = (
|
||||||
|
body: "IRNazanin",
|
||||||
|
sidebar: "IRZar",
|
||||||
|
)
|
||||||
|
|
||||||
#let paper(
|
#let paper(
|
||||||
font: "IRNazanin",
|
font: fonts.body,
|
||||||
fontsize: 13pt,
|
fontsize: 13pt,
|
||||||
company: "کیمیا رازی",
|
company: "کیمیا رازی",
|
||||||
title: "گزارش تست مواد اولیه",
|
title: "گزارش تست مواد اولیه",
|
||||||
subtitle: "دپارتمان جوهر",
|
subtitle: "دپارتمان جوهر",
|
||||||
destinations: none,
|
destinations: (),
|
||||||
purpose: none,
|
purpose: "",
|
||||||
authors: "دیاکو سلطانپور",
|
authors: (
|
||||||
|
(
|
||||||
|
name: "دیاکو سلطانپور",
|
||||||
|
affiliation: "کیمیا رازی - واحد جوهر",
|
||||||
|
email: "diaco@kimiarazi.com",
|
||||||
|
note: "ink dept",
|
||||||
|
),
|
||||||
|
),
|
||||||
date: "",
|
date: "",
|
||||||
doc,
|
doc,
|
||||||
) = {
|
) = {
|
||||||
@@ -31,51 +43,44 @@
|
|||||||
size: fontsize,
|
size: fontsize,
|
||||||
)
|
)
|
||||||
set page(
|
set page(
|
||||||
|
margin: (left: 2cm, right: 2cm, top: 2.5cm, bottom: 2.5cm),
|
||||||
paper: "a4",
|
paper: "a4",
|
||||||
header: context {
|
header: context {
|
||||||
if counter(page).get().first() > 1 [
|
if counter(page).get().first() > 1 [
|
||||||
#grid(
|
#grid(
|
||||||
gutter: 5pt,
|
gutter: 5pt,
|
||||||
columns: (4.2%, 25%, 3%, 20%),
|
columns: (auto, 1fr, auto, auto),
|
||||||
grid.cell(align: right, stroke: 1pt, image(
|
grid.cell(align: right, stroke: 1pt, image(
|
||||||
height: 19pt,
|
height: 19pt,
|
||||||
"kimia razi logo bw.png",
|
"template_files/kimia razi logo bw.png",
|
||||||
)),
|
)),
|
||||||
align: top + right,
|
align: top + right,
|
||||||
title,
|
company,
|
||||||
"|",
|
"|",
|
||||||
subtitle,
|
subtitle,
|
||||||
grid.hline(start: 0),
|
grid.hline(start: 0),
|
||||||
)]
|
)]
|
||||||
},
|
},
|
||||||
background: place(
|
background: place(
|
||||||
dx: -54%,
|
dx: -64%,
|
||||||
dy: 63.5%,
|
dy: 73%,
|
||||||
rotate(
|
rotate(
|
||||||
-90deg,
|
-90deg,
|
||||||
text(
|
text(13pt, font: fonts.sidebar, grid(
|
||||||
13pt,
|
columns: (30%, 30%, 5%),
|
||||||
font: "IRZar",
|
|
||||||
// TODO: do not use grid. use #text and fr if possible
|
|
||||||
grid(
|
|
||||||
columns: (15%, 25%, 40%, 5%),
|
|
||||||
rows: 20pt,
|
rows: 20pt,
|
||||||
align: top,
|
align: top,
|
||||||
context [
|
[#h(1fr) #title #h(5fr)],
|
||||||
#h(1fr) #company #h(2fr)|],
|
[#h(1fr) #(destinations.map(destination => destination.name).join(", ")) #h(5fr)],
|
||||||
[#h(2fr) #title #h(4fr)|],
|
|
||||||
[#h(2fr)#(
|
|
||||||
destinations.map(destination => destination.name).join("\n")
|
|
||||||
) #h(2fr)],
|
|
||||||
grid.cell(fill: black, align: center, stroke: 1pt, text(
|
grid.cell(fill: black, align: center, stroke: 1pt, text(
|
||||||
fill: white,
|
fill: white,
|
||||||
context (counter(page).display("۱/۱", both: true)),
|
context (counter(page).display("۱/۱", both: true)),
|
||||||
)),
|
)),
|
||||||
grid.hline(start: 0),
|
grid.hline(start: 0),
|
||||||
|
)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
numbering: "۱",
|
||||||
),
|
|
||||||
)
|
)
|
||||||
set document(
|
set document(
|
||||||
title: title,
|
title: title,
|
||||||
@@ -104,8 +109,6 @@
|
|||||||
))],
|
))],
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
line(length: 100%)
|
|
||||||
|
|
||||||
// set heading(numbering: "۱.۱- ")
|
// set heading(numbering: "۱.۱- ")
|
||||||
set math.equation(numbering: "(1)")
|
set math.equation(numbering: "(1)")
|
||||||
set footnote(numbering: "۱.")
|
set footnote(numbering: "۱.")
|
||||||
@@ -113,11 +116,24 @@
|
|||||||
set footnote.entry(indent: 0em)
|
set footnote.entry(indent: 0em)
|
||||||
set align(right)
|
set align(right)
|
||||||
|
|
||||||
show heading: it => [
|
show heading: it => context {
|
||||||
|
let y = here().position().y
|
||||||
|
let body-top = if counter(page).get().first() > 1 {
|
||||||
|
page.margin.top + 28pt
|
||||||
|
} else {
|
||||||
|
page.margin.top
|
||||||
|
}
|
||||||
|
let not-at-top = y > body-top + 12pt
|
||||||
|
[
|
||||||
|
#if not-at-top and it.level <= 2 [
|
||||||
|
#line(length: 100%)
|
||||||
|
#v(8pt)
|
||||||
|
]
|
||||||
#set align(right)
|
#set align(right)
|
||||||
#it.body
|
#it.body
|
||||||
#v(10pt)
|
#v(10pt)
|
||||||
]
|
]
|
||||||
|
}
|
||||||
|
|
||||||
set text(spacing: 100%)
|
set text(spacing: 100%)
|
||||||
set par(
|
set par(
|
||||||
@@ -206,14 +222,25 @@
|
|||||||
sample_count,
|
sample_count,
|
||||||
supplier,
|
supplier,
|
||||||
) = {
|
) = {
|
||||||
grid(
|
block(
|
||||||
columns: (auto, auto),
|
breakable: false,
|
||||||
inset: 10pt,
|
align(center, table(
|
||||||
[- تاریخ دریافت نمونه:], [#received_date],
|
columns: (auto, auto, auto, auto, auto),
|
||||||
[- تاریخ گزارش:], [#report_date],
|
align: right,
|
||||||
[- نوع نمونه:], [#sample_type],
|
stroke: 0.5pt,
|
||||||
[- تعداد:], [#sample_count],
|
inset: 8pt,
|
||||||
[- تأمین کننده:], [#supplier],
|
fill: (x, y) => if y == 0 { luma(235) },
|
||||||
|
[*تاریخ دریافت نمونه*],
|
||||||
|
[*تاریخ گزارش*],
|
||||||
|
[*نوع نمونه*],
|
||||||
|
[*تعداد*],
|
||||||
|
[*تأمین کننده*],
|
||||||
|
[#received_date],
|
||||||
|
[#report_date],
|
||||||
|
[#sample_type],
|
||||||
|
[#sample_count],
|
||||||
|
[#supplier],
|
||||||
|
)),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -240,8 +267,8 @@
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Renders the ink formula as a component / weight-% table and appends an
|
// Renders the ink formula as a horizontal component / weight-% table and
|
||||||
// automatic total row. Component names are rendered LTR (English).
|
// appends an automatic total column. Component names are rendered LTR (English).
|
||||||
// Each row is a tuple of (component, weight).
|
// Each row is a tuple of (component, weight).
|
||||||
// Usage:
|
// Usage:
|
||||||
// #ink_formula_table((
|
// #ink_formula_table((
|
||||||
@@ -251,19 +278,24 @@
|
|||||||
// ))
|
// ))
|
||||||
#let ink_formula_table(rows) = {
|
#let ink_formula_table(rows) = {
|
||||||
let total = rows.fold(0, (acc, row) => acc + row.at(1))
|
let total = rows.fold(0, (acc, row) => acc + row.at(1))
|
||||||
|
let last-col = rows.len()
|
||||||
block(
|
block(
|
||||||
breakable: false,
|
breakable: false,
|
||||||
align(center, table(
|
align(center, table(
|
||||||
columns: (auto, auto),
|
columns: (auto,) * (rows.len() + 1),
|
||||||
align: center,
|
align: center,
|
||||||
stroke: 0.5pt,
|
stroke: 0.5pt,
|
||||||
inset: 8pt,
|
inset: 8pt,
|
||||||
fill: (x, y) => if y == 0 { luma(235) },
|
fill: (x, y) => {
|
||||||
[*جزء*],
|
if x == last-col { luma(245) }
|
||||||
[*درصد وزنی*],
|
else if y == 0 { luma(235) }
|
||||||
..rows.map(row => (text(dir: ltr, row.at(0)), [#row.at(1)])).flatten(),
|
},
|
||||||
table.cell(fill: luma(245), [*مجموع*]),
|
..rows
|
||||||
table.cell(fill: luma(245), [*#total*]),
|
.map(row => [*#text(dir: ltr, row.at(0))*])
|
||||||
|
.flatten(),
|
||||||
|
[*جمع*],
|
||||||
|
..rows.map(row => [#row.at(1)]).flatten(),
|
||||||
|
[*#total*],
|
||||||
)),
|
)),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user