n8n-nodes-kordoc 0.1.21 → 0.1.22

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.
@@ -9959,7 +9959,7 @@ var init_utils = __esm({
9959
9959
  ".kordoc-source/src/utils.ts"() {
9960
9960
  "use strict";
9961
9961
  init_cjs_shims();
9962
- VERSION = true ? "4.9.1" : "0.0.0-dev";
9962
+ VERSION = true ? "4.9.2" : "0.0.0-dev";
9963
9963
  KordocError = class extends Error {
9964
9964
  constructor(message) {
9965
9965
  super(message);
@@ -47042,7 +47042,9 @@ var GJ_CHAR_BAR = 24;
47042
47042
  var GJ_CHAR_BODY_TITLE = 25;
47043
47043
  var GJ_CHAR_TITLE_BAR = 26;
47044
47044
  var GJ_CHAR_APPROVAL = 27;
47045
- var GJ_CHAR_COUNT = GJ_CHAR_APPROVAL - GJ_CHAR_DAE + 1;
47045
+ var GJ_CHAR_SRC = 28;
47046
+ var GJ_CHAR_SRC_BOLD = 29;
47047
+ var GJ_CHAR_COUNT = GJ_CHAR_SRC_BOLD - GJ_CHAR_DAE + 1;
47046
47048
  var GJ_PARA_CHAM = 20;
47047
47049
  var GJ_PARA_COVER = 21;
47048
47050
  var GJ_PARA_TOC_ITEM = 22;
@@ -47050,7 +47052,8 @@ var GJ_PARA_CHAPTER = 23;
47050
47052
  var GJ_PARA_BAR = 24;
47051
47053
  var GONGMUN_LIST_PLAIN_BASE = 25;
47052
47054
  var GONGMUN_PARA_APPROVAL = GONGMUN_LIST_PLAIN_BASE + GONGMUN_LIST_LEVELS;
47053
- var GONGMUN_LIST_VARIANT_BASE = GONGMUN_PARA_APPROVAL + 1;
47055
+ var GONGMUN_SRC_LEFT = GONGMUN_PARA_APPROVAL + 1;
47056
+ var GONGMUN_LIST_VARIANT_BASE = GONGMUN_SRC_LEFT + 1;
47054
47057
  var GJ_BF_CHAPTER_NUM = 3;
47055
47058
  var GJ_BF_CHAPTER_GAP = 4;
47056
47059
  var GJ_BF_CHAPTER_TITLE = 5;
@@ -47097,10 +47100,15 @@ var GONGMUN_TBL_CHAR_BOLD = 12;
47097
47100
  var GONGMUN_TBL_PT = 1200;
47098
47101
  var GONGMUN_TITLE_BAR_CHAR = 13;
47099
47102
  var GONGMUN_APPROVAL_CHAR = 14;
47103
+ var GONGMUN_SRC_CHAR = 15;
47104
+ var GONGMUN_SRC_CHAR_BOLD = 16;
47105
+ function srcCaptionPt(bodyHeight) {
47106
+ return Math.max(bodyHeight - 300, 1e3);
47107
+ }
47100
47108
  var CHAR_VARIANT_BASE = CHAR_QUOTE + 1;
47101
47109
  function charVariantBase(richAssets, isGongmun = true) {
47102
47110
  if (!isGongmun) return CHAR_VARIANT_BASE;
47103
- return richAssets ? CHAR_VARIANT_BASE + GJ_CHAR_COUNT : CHAR_VARIANT_BASE + (GONGMUN_APPROVAL_CHAR - GONGMUN_TBL_CHAR + 1);
47111
+ return richAssets ? CHAR_VARIANT_BASE + GJ_CHAR_COUNT : CHAR_VARIANT_BASE + (GONGMUN_SRC_CHAR_BOLD - GONGMUN_TBL_CHAR + 1);
47104
47112
  }
47105
47113
  var GONGMUN_BODY_RATIO = 95;
47106
47114
 
@@ -47611,7 +47619,10 @@ function buildCharProperties(theme, gongmun, ratioVariants = [], extraCharPrXmls
47611
47619
  charPr(11, GONGMUN_TBL_PT, false, false, bodyFont, theme.body),
47612
47620
  charPr(12, GONGMUN_TBL_PT, true, false, bodyFont, theme.body),
47613
47621
  charPr(GONGMUN_TITLE_BAR_CHAR, 100, false, false, bodyFont, theme.body),
47614
- charPr(GONGMUN_APPROVAL_CHAR, 1e3, false, false, bodyFont, theme.body)
47622
+ charPr(GONGMUN_APPROVAL_CHAR, 1e3, false, false, bodyFont, theme.body),
47623
+ // 출처행 캡션 — 본문 폰트 -3pt (실무 보고서: 표 아래 출처는 본문과 구분되는 작은 글씨)
47624
+ charPr(GONGMUN_SRC_CHAR, srcCaptionPt(body), false, false, bodyFont, theme.body),
47625
+ charPr(GONGMUN_SRC_CHAR_BOLD, srcCaptionPt(body), true, false, bodyFont, theme.body)
47615
47626
  );
47616
47627
  }
47617
47628
  if (richAssets) {
@@ -47649,8 +47660,12 @@ function buildCharProperties(theme, gongmun, ratioVariants = [], extraCharPrXmls
47649
47660
  // 본문 제목박스(HY헤드라인M 22pt, 실측 GT3 표④)
47650
47661
  charPr(GJ_CHAR_TITLE_BAR, 100, false, false, 4),
47651
47662
  // 1페이지형 제목박스 바(1pt)
47652
- charPr(GJ_CHAR_APPROVAL, 1e3, false, false, 7)
47663
+ charPr(GJ_CHAR_APPROVAL, 1e3, false, false, 7),
47653
47664
  // 결재란 라벨(맑은 고딕 10pt)
47665
+ charPr(GJ_CHAR_SRC, srcCaptionPt(body), false, false, 5),
47666
+ // 출처행 캡션(한양중고딕 본문-3pt)
47667
+ charPr(GJ_CHAR_SRC_BOLD, srcCaptionPt(body), true, false, 5)
47668
+ // 출처행 캡션 bold
47654
47669
  );
47655
47670
  }
47656
47671
  const expectedBase = charVariantBase(richAssets, !!gongmun);
@@ -47738,6 +47753,7 @@ ${base3.join("\n")}
47738
47753
  base2.push(paraPr(GONGMUN_LIST_PLAIN_BASE + d, { align: listAlign, lineSpacing: ls, left, indent: 0, spaceBefore: sectionGap, keepWord: true }));
47739
47754
  }
47740
47755
  base2.push(paraPr(GONGMUN_PARA_APPROVAL, { align: "CENTER", lineSpacing: 100, keepWord: true }));
47756
+ base2.push(paraPr(GONGMUN_SRC_LEFT, { align: "LEFT", lineSpacing: ls, keepWord: true }));
47741
47757
  for (let vi = 0; vi < listIndentVariants.length; vi++) {
47742
47758
  const { depth, widthHu } = listIndentVariants[vi];
47743
47759
  const { left } = levelIndent(depth, gongmun.bodyHeight, gongmun.numbering, gongmun.sizes, gongmun.bullet2, usesAsteriskThird(gongmun.preset));
@@ -50399,7 +50415,17 @@ function renderParagraph(block2, blockIdx, ctx) {
50399
50415
  const ctr = gongmun && /^<center>([\s\S]*)<\/center>$/i.exec((block2.text || "").trim());
50400
50416
  const rgt = gongmun && /^<right>([\s\S]*)<\/right>$/i.exec((block2.text || "").trim());
50401
50417
  if (ctr) return generateParagraph(ctr[1].trim(), GONGMUN_CENTER);
50402
- if (rgt) return generateParagraph(rgt[1].trim(), GONGMUN_RIGHT);
50418
+ if (rgt) {
50419
+ const t = rgt[1].trim();
50420
+ const isSrc = /^(출처|자료)\s*[::]/.test(t);
50421
+ const srcChar = ctx.richAssets ? GJ_CHAR_SRC : GONGMUN_SRC_CHAR;
50422
+ const srcBold = ctx.richAssets ? GJ_CHAR_SRC_BOLD : GONGMUN_SRC_CHAR_BOLD;
50423
+ const h = isSrc ? srcCaptionPt(gongmun.bodyHeight) : gongmun.bodyHeight;
50424
+ const fits = measureTextWidth(t, h, isSrc ? 100 : GONGMUN_BODY_RATIO) <= ctx.gjBodyW + 0.5;
50425
+ const paraId = fits ? GONGMUN_RIGHT : GONGMUN_SRC_LEFT;
50426
+ if (!isSrc) return generateParagraph(t, paraId);
50427
+ return generateParagraph(t, paraId, srcChar, (id) => id === CHAR_BOLD ? srcBold : id);
50428
+ }
50403
50429
  return generateParagraph(block2.text || "", PARA_NORMAL, CHAR_NORMAL, fit ? variantMapper(fit, blockIdx, vBase) : void 0);
50404
50430
  }
50405
50431
  function renderCodeBlock(block2, blockIdx, ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-kordoc",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "n8n community node for converting HWP, HWPX, PDF, and Office documents to Markdown with KorDoc",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/chowhi123/n8n-nodes-kordoc#readme",