Compare commits

...

2 Commits

Author SHA1 Message Date
bd7c8e6459 Add .gitignore and stop tracking local Typst report files.
Keep main.typ and generated PDFs out of version control as local working artifacts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 01:25:42 +03:30
2b33c8bd36 Add product test template and pigment color measurement data.
Include a reusable Typst report template and reference CSV, and recommend the CSV editor extension for the workspace.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 01:24:46 +03:30
4 changed files with 272 additions and 153 deletions

41
.gitignore vendored Normal file
View File

@@ -0,0 +1,41 @@
# Typst build artifacts
*.pdf
main.typ
# Typst cache / packages (local)
.typst-cache/
# macOS
.DS_Store
.AppleDouble
.LSOverride
Icon?
._*
# Windows
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
Desktop.ini
$RECYCLE.BIN/
# Linux
*~
.fuse_hidden*
.directory
.Trash-*
# Editor / IDE
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea/
*.swp
*.swo
# Temp / backup files
*.tmp
*.temp
*.bak
*.log

14
Color measurement.csv Normal file
View File

@@ -0,0 +1,14 @@
Pigment Color,Pigment Provider,Pigment Code,Doc. Ref.,KR Int Ref,Lab Int Ref,Glaze,Temperature,L*,a*,b*,Surface Texture,Notes
Blue,Std,K301,,,,CPO4760,1150,32.8,4.9,-36.4,Matt,Cobalt Aluminate
Blue,Yasna,121,106,1576,PI-BL46,CPO4760,1150,28.8,6.1,-30.6,,
Blue,Std,K315,,,,CPO4760,1150,28.1,6.8,-31.8, ,Cobalt Silicate
Beige,Std,OC860A,,,,CPO4760,1150,44.5,21.5,42,,
Beige,Yasna,716,107,1577,PI-BG27,CPO4760,1150,44.8,19.3,46.5,,
Beige,Std,MAR3-4,,,,CPO4760,1150,42.4,19.6,40.1,,
Red Brown,Std,OC858A,,,,CPO4760,1150,20.5,24.9,21.4,,
Red Brown,Std,OL3009,,,,CPO4760,1150,22.2,24.6,20.9,,
Red Brown,Yasna,703,105,1575,PI-RBR20,CPO4760,1150,21.7,24.7,21,,
Yellow,Std,HC30901D,,,,CPO4760,1150,71.5,-6.9,36.9,,
Yellow,Yasna,421,104,1574,PI-Y31,CPO4760,1150,69.3,-4.8,28.4,,
Black,Std,KER-6065,,,,CPO4760,1150,21.6,-0.6,2.1,,
Black,Yasna,928,108,1578,PI-BK29,CPO4760,1150,24,2.5,0.1,,
1 Pigment Color Pigment Provider Pigment Code Doc. Ref. KR Int Ref Lab Int Ref Glaze Temperature L* a* b* Surface Texture Notes
2 Blue Std K301 CPO4760 1150 32.8 4.9 -36.4 Matt Cobalt Aluminate
3 Blue Yasna 121 106 1576 PI-BL46 CPO4760 1150 28.8 6.1 -30.6
4 Blue Std K315 CPO4760 1150 28.1 6.8 -31.8 Cobalt Silicate
5 Beige Std OC860A CPO4760 1150 44.5 21.5 42
6 Beige Yasna 716 107 1577 PI-BG27 CPO4760 1150 44.8 19.3 46.5
7 Beige Std MAR3-4 CPO4760 1150 42.4 19.6 40.1
8 Red Brown Std OC858A CPO4760 1150 20.5 24.9 21.4
9 Red Brown Std OL3009 CPO4760 1150 22.2 24.6 20.9
10 Red Brown Yasna 703 105 1575 PI-RBR20 CPO4760 1150 21.7 24.7 21
11 Yellow Std HC30901D CPO4760 1150 71.5 -6.9 36.9
12 Yellow Yasna 421 104 1574 PI-Y31 CPO4760 1150 69.3 -4.8 28.4
13 Black Std KER-6065 CPO4760 1150 21.6 -0.6 2.1
14 Black Yasna 928 108 1578 PI-BK29 CPO4760 1150 24 2.5 0.1

153
main.typ
View File

@@ -1,153 +0,0 @@
#import "paper_template.typ": *
#set text(lang: "fa")
#show: paper.with(
authors: (
(
name: "دیاکو سلطانپور",
affiliation: "کیمیا رازی - واحد جوهر",
email: "diaco@kimiarazi.com",
note: "ink dept",
),
(
name: "آقای حسین زاده",
affiliation: "واحد فروش",
note:"مدیر فروش"
),
(
name: "خانم مردانیان",
affiliation: "واحد فروش",
note: "کارشناس فروش",
),
(
name: "خانم کرمانی",
affiliation: "آزمایشگاه لعاب",
note: "مدیر آزمایشگاه"
),
),
date: "۲۲ تا ۴/۶/۲۶",
destinations: (
(name: " نتايج تست پيگمنت‌های شرکت یسنا ملل آرمان"),
),
purpose: "بازدید و بررسی وضعیت",
)
// Your main content goes here
\
= نتايج تست پيگمنت‌های شرکت یسنا ملل آرمان برای جوهر دیجیتال
تاریخ دریافت نمونه: ۱۴۰۴/۰۹/۲۴
تاریخ گزارش: ۱۴۰۴/۱۰/۱۶
\
== نمونه دریافتی
تأمین کننده: یسنا ملل آرمان
تعداد نمونه: ۵ عدد
=== پیگمنت مشکی کبالتی
- کد تأمین کننده: 928
- کد داخلی: PI-BK28
=== پیگمنت آبی کبالتی
- کد تأمین کننده: 121
- کد داخلی: PI-BL46
=== پیگمنت قهوه‌ای
- کد تأمین کننده: 703
- کد داخلی: PI-RBR20
=== پیگمنت بژ
- کد تأمین کننده: 716
- کد داخلی: PI-BE27
=== پیگمنت زرد
- کد تأمین کننده: 421
- کد داخلی: PI-Y31
\
== تست‌های انجام شده
با استفاده از این پیگمنت‌ها نمونه جوهر ساخته شد و در کنار نمونه آزمایشگاهی ساخته شده با پیگمنت استاندارد کیمیا رازی به صورت قطره‌ای روی سه لعاب مختلف و در دماهای مختلف پخت (۱۰۵۰، ۱۱۷۰ و ۱۱۵۰ درجه سانتی‌گراد) و روی لعاب‌های براق و مات تست شد.
فرمول نمونه جوهر بر اساس درصد وزنی به صورت زیر است:
#align(left)[#text(lang: "en")[
- Pigment: 30
- Sol-1: 60
- Super Disp.: 10]]
برای جوهر مشکی دو درصد اکسید کبالت افزوده و به همان مقدار از دیسپرسانت کاسته شد.
\
تست‌ها شامل:
- بررسی کیفیت سطح
- شدت رنگ
- تم رنگ
// تست پایداری جوهر در مقابل رسوب‌گذاری و ته‌نشینی نیز انجام شده است.
\
== نتایج تست‌ها
=== مقایسه پیگمنت مشکی کبالتی (928 / PI-BK28) با استاندارد
#block(breakable: false)[
#align(center)[#table(
columns: (auto, auto),
inset: 10pt,
[*معیار*], [*یسنا ملل آرمان*],
[کیفیت سطح], [خوب],
[تم رنگ], [نسبتا خوب],
[شدت رنگ], [کمتر (L\*: +3.4)],
[نتیجه نهایی], [نامناسب],
)]
]
\
=== مقایسه پیگمنت آبی کبالتی (121 / PI-BL46) با استاندارد
#block(breakable: false)[
#align(center)[#table(
columns: (auto, auto),
inset: 10pt,
[*معیار*], [*یسنا ملل آرمان*],
[کیفیت سطح], [خوب],
[تم رنگ], [خوب],
[شدت رنگ], [کمتر (L\*: +1.0)],
[نتیجه نهایی], [نامناسب],
)]
]
\
=== مقایسه پیگمنت قهوه‌ای (703 / PI-RBR20) با استاندارد
#block(breakable: false)[
#align(center)[#table(
columns: (auto, auto),
inset: 10pt,
[*معیار*], [*یسنا ملل آرمان*],
[کیفیت سطح], [خوب],
[تم رنگ], [خوب],
[شدت رنگ], [خوب],
[نتیجه نهایی], [مناسب],
)]
]
\
=== مقایسه پیگمنت بژ (716 / PI-BE27) با استاندارد
#block(breakable: false)[
#align(center)[#table(
columns: (auto, auto),
inset: 10pt,
[*معیار*], [*یسنا ملل آرمان*],
[کیفیت سطح], [خوب],
[تم رنگ], [خوب],
[شدت رنگ], [کمتر (L\*: +1.3)],
[نتیجه نهایی], [نامناسب],
)]
]
\
=== مقایسه پیگمنت زرد (421 / PI-Y31) با استاندارد
#block(breakable: false)[
#align(center)[#table(
columns: (auto, auto),
inset: 10pt,
[*معیار*], [*یسنا ملل آرمان*],
[کیفیت سطح], [خوب],
[تم رنگ], [چرک (b\*: -8.5)],
[شدت رنگ], [خوب],
[نتیجه نهایی], [نامناسب],
)]
]
\
== جمع بندی نتايج
- پیگمنت قهوه‌ای شرکت یسنا ملل آرمان مشابه پیگمنت استاندارد کیمیا رازی بوده و در نتیجه نهایی نیز مناسب ارزیابی شد. این نمونه ممکن است برای تست صنعتی در نظر گرفته شود.
- پیگمنت مشکی و آبی به دلیل شدت رنگ پایین، زرد به دلیل تم چرک و بژ به دلیل شدت رنگ پایین و قزمزی زیاد مورد تأیید نیستند.

217
product_test_template.typ Normal file
View File

@@ -0,0 +1,217 @@
///////////////////////////////
// This Typst template is for working paper draft.
// It is based on the general SSRN paper.
// Copyright (c) 2024
// Author: Diaco
// License: MIT
// Version: 0.9.0
// Date: 2024-05-16
// Email: dyaco8464@yahoo.com
///////////////////////////////
#let paper(
font: "IRNazanin",
fontsize: 13pt,
company: "کیمیا رازی",
title: "گزارش تست مواد اولیه",
subtitle: "دپارتمان جوهر",
destinations: (none),
purpose: none,
authors: ("دیاکو سلطانپور"),
date: "",
doc,
) = {
set math.equation(numbering: "(1)", supplement: auto)
set par(leading: 1em)
// Set and show rules from before.
set text(
font: font,
size: fontsize
)
set page(
paper: "a4",
header:
context {if counter(page).get().first() > 1 [
#grid(
gutter: 5pt,
columns: (4.2%,25%,3%,20%),
grid.cell(align: right, stroke: 1pt, image(height: 19pt,"kimia razi logo bw.png")),
align: top+right,
title,
"|",
subtitle,
grid.hline(start: 0),)]},
background: place(
dx: -54%,
dy: 63.5%,
rotate(
-90deg,
text(13pt,font: "IRZar",
// TODO: do not use grid. use #text and fr if possible
grid(
columns: (15%,25%, 40% ,5%),
rows: 20pt,
align: top,
context[
#h(1fr) #company #h(2fr)|],
[#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(fill: white,
context(counter(page).display("۱/۱", both: true,)))),
grid.hline(start: 0),
)
)
)
)
)
set document(
title: title,
author: authors.map(author => author.name),
)
set align(right)
if subtitle != none {
text(align(center,{strong(company)}))
}
text(18pt, align(center,{strong(title)}))
set text(13pt, font: "IRLotus")
if subtitle != none {
text(align(center,{subtitle}))
}
align(center, line(length: 100%))
// set heading(numbering: "۱.۱- ")
set math.equation(numbering: "(1)")
set footnote(numbering: "۱.")
set footnote.entry(separator: line(length: 100%, stroke: 0.5pt))
set footnote.entry(indent: 0em)
set align(right)
show heading: it => [
#set align(right)
#it.body
#v(10pt)
]
set text(spacing: 100%)
set par(
leading: 1.2em,
first-line-indent: 0em,
justify: true,
)
columns(1, doc)
}
// Renders a centered, non-breakable result table.
// Each row is a tuple of content cells; the first row is the header.
// Usage:
// #test_result_table((
// ([*معیار*], [*CLCE-539/1*]),
// ([کیفیت سطح], [خوب]),
// ([نتیجه نهایی], [مناسب]),
// ))
#let test_result_table(cols) = {
block(
breakable: false,
align(center,
table(
columns: (auto,) * (cols.first().len()),
inset: 8pt,
stroke: 0.5pt,
fill: (x, y) => if y == 0 { luma(230) },
..cols.flatten(),
)
)
)
}
// Renders a level-3 heading + result table as a non-breakable unit.
// Usage:
// #pigment_result_block("پیگمنت زرد", (
// ([*معیار*], [*CLCE-539/1*]),
// ([کیفیت سطح], [خوب]),
// ([نتیجه نهایی], [نامناسب]),
// ))
#let pigment_result_block(name, rows) = {
block(breakable: false)[
=== #name
#test_result_table(rows)
]
}
// Renders a standalone pigment info block (no heading).
// Use inside a sample_section for additional codes under the same heading,
// or alone when a group shares a heading.
// Usage:
// #sample_entry("CLCE-539/4", "PI-BG32", "5")
#let sample_entry(supplier_code, internal_code, document_no) = {
grid(
columns: (auto, auto),
inset: 10pt,
[- کد تأمین کننده:], [#supplier_code],
[- کد داخلی], [#internal_code],
[- شماره سند:], [#document_no],
)
}
// Renders a level-3 heading + pigment info block as a non-breakable unit.
// Use for each pigment group in the received samples section.
// Usage:
// #sample_section("پیگمنت زرد", "CLCE-539/1", "PI-Y36", "2")
#let sample_section(title, supplier_code, internal_code, document_no) = {
block(breakable: false)[
=== #title
#sample_entry(supplier_code, internal_code, document_no)
]
}
// Renders the general report information table.
// Usage:
// #general_info_table(
// "۱۴۰۵/۰۱/۱۷",
// "۱۴۰۵/۰۱/۲۴",
// "پیگمنت",
// "۹",
// "Esmaltes",
// )
#let general_info_table(received_date, report_date, sample_type, sample_count, supplier) = {
grid(
columns: (auto, auto),
inset: 10pt,
[- تاریخ دریافت نمونه:], [#received_date],
[- تاریخ گزارش:], [#report_date],
[- نوع نمونه:], [#sample_type],
[- تعداد:], [#sample_count],
[- تأمین کننده:], [#supplier],
)
}
// Renders the received samples as a structured table.
// Each row should contain:
// (pigment_name, supplier_code, internal_code, document_no)
#let received_samples_table(rows) = {
block(
breakable: false,
align(center,
table(
columns: (auto, auto, auto, auto),
align: right,
stroke: 0.5pt,
inset: 7pt,
fill: (x, y) => if y == 0 { luma(235) },
[*نوع پیگمنت*],
[*کد تأمین کننده*],
[*کد داخلی*],
[*شماره سند*],
..rows.flatten(),
)
)
)
}