# 第188・189・192話（ツカムくん × SO-101 の話）で使う共通の文（2026-11-26）
import os
from importlib.machinery import SourceFileLoader as _L
_C = _L("_c153", os.path.expanduser("~/mnt/PixelstoMotors/ハコブくん/4コママンガ作成データ/縦長/_common_153_157.py")).load_module()
F, SIZE, PIT, CLOSED, WIDE, TURN = _C.F, _C.SIZE, _C.PIT, _C.CLOSED, _C.WIDE, _C.TURN
STOUT = ("HAKOBUKUN SILHOUETTE — STOUT, NOT TALL AND THIN:", ["copy the short, broad, stout proportions of the attached three-quarter 3D reference exactly. Its whole outline is only about 1.45 times as tall as it is wide", "the screen is wider than it is tall; the side ring panel is broad, almost square", "do NOT stretch it vertically, do NOT make it narrow"])
TSU_SHAPE = ("TSUKAMUKUN SHAPE — COPY THE SHEET:", ["Tsukamukun is the low white base box with its face (two round eyes, NO mouth) on the FRONT of the base, and ONE jointed arm rising from the top of the base, ending in a two-finger gripper. It has NO head on top, NO humanoid head, NO neck, NO second arm", "its face is ONLY on the base — NEVER on the arm or the gripper", "it stands directly on the table top",
    "its base is a ROUNDED, slightly tapered block (narrower at the top), with a dark rounded face panel on its front — NOT a wide rectangular box, NOT a TV"])
# 2026-11-26 エイイチ「ツカムくんがでかい・絵が違う」→ 大きさを人と台で決める
def TSU_SIZE(who=None):
    L = ["Tsukamukun is a SMALL desktop arm, about 40 cm tall. Its base is only about 25 cm wide — about ONE FIFTH of the length of the table top, and no bigger than a person's head",
         "it never looks bigger than a person's upper body"]
    if who: L.append("even with its arm raised, Tsukamukun's highest point stays at %s's CHEST height, well BELOW the shoulders — never level with or above %s head" % (who, "her" if who in ("Oshiro", "Takasugi", "Terashima", "Shiraishi") else "his"))
    return ("TSUKAMUKUN SIZE — SMALL:", L)
# ハコブくんの幅を画像の上の数で決める（縦長 1080×1350 で、高さ h% の斜めの姿の幅は h×0.86 %）
def HWIDTH(top, bottom):
    h = bottom - top; w = round(h * 0.86)
    return ("HAKOBUKUN WIDTH — FROM ITS HEIGHT:", ["Hakobukun is %d%% of the image height tall, so its whole three-quarter outline is about %d%% of the image WIDTH wide. It is short and broad like the 3D reference — NOT a tall narrow column" % (h, w),
            "Hakobukun is drawn complete, NOT cut by the edge of the picture"])
BOTTLE = "a small plain white medicine bottle with a cap. NO text, NO label"
LEADER = "the teaching arm (leader arm): a SECOND arm of the SAME size and the SAME jointed shape as Tsukamukun's own arm, standing on its own small plain low base block WITHOUT a face, at the left end of the table top. At its tip, instead of a gripper, it has a small handle with a trigger that a person holds. NO clamp, NOT a thin rod, NOT a miniature. NO text"
# 2026-11-26 エイイチ「リーダーアームの大きさが変。描画が変」→ ツカムくんと同じ大きさ・同じ形の腕が顔のない台座に立つ形にした（クランプの細い棒をやめた）
BOX = "a small plain open cardboard box on the table top. NO text"
TRAY = "a small plain shallow plastic tray holding a few small plain vials. NO text, NO labels"
PLATE = "a flat grey metal plate covered in a neat regular grid of many small round screw holes (an optical breadboard), lying on the table top. NO text, NO numbers"

# 2026-11-26 エイイチ「大城さんの服のスクリーントーンがない」
TONE = lambda who: ("%s'S CLOTHES — SCREENTONE:" % who.upper(), ["%s's scrub top and trousers are filled with the medium-grey dot screentone, as dark as on the reference sheet — NOT left white, NOT pale" % who])

# 2026-11-26 エイイチ「切れてるのがいくつもある」→ reshape でハコブくんに触れていた台やトレイまで動き、継ぎ目で切れた。ハコブくんと台の間に緑のすき間を空けて描かせる
GAP = ("CLEAR GAP AROUND HAKOBUKUN:", ["there is a clear empty strip of plain green background, at least 4% of the image width, between Hakobukun and the table — Hakobukun does NOT touch, overlap or stand in front of the table or anything on it"])
BOXO = "a small plain cardboard box on the table top whose four top flaps are folded OPEN outward, so the inside of the box is visible. NO text"
