repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
rust-mcp-stack/rust-mcp-sdk | https://github.com/rust-mcp-stack/rust-mcp-sdk/blob/c25994d3d800242c1413b7401432f2a5bef3c23f/crates/rust-mcp-transport/src/event_store/in_memory_event_store.rs | crates/rust-mcp-transport/src/event_store/in_memory_event_store.rs | use crate::event_store::EventStoreResult;
use crate::{
event_store::{EventStore, EventStoreEntry},
EventId, SessionId, StreamId,
};
use async_trait::async_trait;
use std::collections::HashMap;
use std::collections::VecDeque;
use tokio::sync::RwLock;
const MAX_EVENTS_PER_SESSION: usize = 64;
const ID_SEPARATOR:... | rust | MIT | c25994d3d800242c1413b7401432f2a5bef3c23f | 2026-01-04T20:25:10.242745Z | false |
rust-mcp-stack/rust-mcp-sdk | https://github.com/rust-mcp-stack/rust-mcp-sdk/blob/c25994d3d800242c1413b7401432f2a5bef3c23f/crates/rust-mcp-transport/tests/check_imports.rs | crates/rust-mcp-transport/tests/check_imports.rs | #[cfg(test)]
mod tests {
use std::fs::File;
use std::io::{self, Read};
use std::path::{Path, MAIN_SEPARATOR_STR};
// List of files to exclude from the check
const EXCLUDED_FILES: &[&str] = &["src/schema.rs"];
// Check all .rs files for incorrect `use rust_mcp_schema` imports
#[test]
fn... | rust | MIT | c25994d3d800242c1413b7401432f2a5bef3c23f | 2026-01-04T20:25:10.242745Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/renderer/src/display_list.rs | renderer/src/display_list.rs | use std::{
collections::HashMap,
fmt::{Debug, Display},
hash::Hash,
mem,
ops::{Range, RangeInclusive},
sync::Mutex,
};
use cgmath::SquareMatrix;
use ldraw::{
color::{Color, ColorCatalog, ColorReference},
Matrix4, PartAlias, Vector4,
};
use ldraw_ir::model::{GroupId, Model, Object, Objec... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | true |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/renderer/src/lib.rs | renderer/src/lib.rs | pub mod display_list;
mod entity;
pub mod error;
pub mod part;
pub mod pipeline;
pub mod projection;
pub mod util;
pub use entity::{Entity, GpuUpdate, GpuUpdateResult};
#[derive(Copy, Clone, Debug, PartialEq, PartialOrd)]
pub struct AspectRatio(f32);
impl From<(u32, u32)> for AspectRatio {
fn from((width, height... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/renderer/src/entity.rs | renderer/src/entity.rs | const MAX_ITERATIONS: i32 = 10;
pub enum GpuUpdateResult<M> {
Modified,
NotModified,
AdditionalMutations { modified: bool, mutations: Vec<M> },
}
impl<M> From<bool> for GpuUpdateResult<M> {
fn from(value: bool) -> Self {
if value {
Self::Modified
} else {
Self::... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/renderer/src/error.rs | renderer/src/error.rs | #[derive(thiserror::Error, Debug)]
pub enum ObjectSelectionError {
#[error("Selection coordinate is out of range: {0:?}")]
OutOfRange(crate::ObjectSelection),
#[error("Async buffer read error: {0}")]
AsyncBufferReadError(#[from] wgpu::BufferAsyncError),
}
| rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/renderer/src/util.rs | renderer/src/util.rs | use std::hash::Hash;
use cgmath::SquareMatrix;
use ldraw::Matrix4;
use ldraw_ir::{
geometry::BoundingBox3,
model::{self, GroupId},
};
use crate::part::PartQuerier;
pub async fn request_device(
adapter: &wgpu::Adapter,
label: Option<&str>,
) -> Result<(wgpu::Device, wgpu::Queue, u32), wgpu::RequestDev... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/renderer/src/projection.rs | renderer/src/projection.rs | use std::{collections::HashSet, hash::Hash};
use cgmath::{prelude::*, Deg, Matrix, Ortho, PerspectiveFov, Point3, SquareMatrix};
use ldraw::{Matrix3, Matrix4, Vector2, Vector3};
use ldraw_ir::geometry::{BoundingBox2, BoundingBox3};
use wgpu::util::DeviceExt;
use crate::{AspectRatio, GpuUpdate, GpuUpdateResult};
stru... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/renderer/src/pipeline.rs | renderer/src/pipeline.rs | use std::{collections::HashSet, fmt::Display, hash::Hash, ops::Range};
use cgmath::SquareMatrix;
use image::GenericImageView;
use ldraw::{color::Color, Matrix4, Vector3, Vector4};
use wgpu::{util::DeviceExt, TextureViewDescriptor};
use crate::display_list::InstanceOps;
use super::{
display_list::{DisplayList, In... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | true |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/renderer/src/part.rs | renderer/src/part.rs | use std::{collections::HashMap, ops::Range};
use ldraw::{
color::{ColorCatalog, ColorReference},
Vector4,
};
use ldraw_ir::{geometry::BoundingBox3, part as part_ir};
use wgpu::util::DeviceExt;
pub struct MeshBuffer {
pub vertices: wgpu::Buffer,
pub indices: wgpu::Buffer,
pub index_format: wgpu::In... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/tools/viewer/native/src/main.rs | tools/viewer/native/src/main.rs | #![cfg(not(target_arch = "wasm32"))]
use std::{
env,
path::PathBuf,
rc::Rc,
sync::{Arc, RwLock},
time::{Duration, Instant},
};
use clap::{App as ClapApp, Arg};
use ldraw::{
color::ColorCatalog,
document::MultipartDocument,
library::{DocumentLoader, LibraryLoader, PartCache},
resolv... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/tools/viewer/common/src/lib.rs | tools/viewer/common/src/lib.rs | mod error;
mod texture;
use std::{
cell::RefCell,
cmp::min,
collections::{HashMap, HashSet},
f32,
rc::Rc,
sync::{Arc, RwLock},
vec::Vec,
};
use cgmath::{Deg, SquareMatrix};
use instant::{Duration, Instant};
use ldraw::{
color::{Color, ColorCatalog},
document::MultipartDocument,
... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/tools/viewer/common/src/texture.rs | tools/viewer/common/src/texture.rs | pub struct Texture {
_texture: wgpu::Texture,
pub view: wgpu::TextureView,
_sampler: wgpu::Sampler,
}
impl Texture {
pub const DEPTH_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Depth32Float;
pub fn create_framebuffer(
device: &wgpu::Device,
config: &wgpu::SurfaceConfiguratio... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/tools/viewer/common/src/error.rs | tools/viewer/common/src/error.rs | use std::{
error::Error,
fmt::{Display, Formatter, Result as FmtResult},
};
#[derive(Debug)]
pub enum AppCreationError {
NoAdapterFound,
RequestDeviceError(wgpu::RequestDeviceError),
CreateSurfaceError(wgpu::CreateSurfaceError),
}
impl Display for AppCreationError {
fn fmt(&self, f: &mut Forma... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/tools/viewer/web/src/lib.rs | tools/viewer/web/src/lib.rs | #![cfg(target_arch = "wasm32")]
extern crate console_error_panic_hook;
use std::{
cell::RefCell,
panic,
rc::Rc,
sync::{Arc, RwLock},
};
use gloo::events::EventListener;
use ldraw::{
document::MultipartDocument,
error::ResolutionError,
library::{CacheCollectionStrategy, LibraryLoader, Part... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/tools/baker/src/main.rs | tools/baker/src/main.rs | use std::{
env,
path::{Path, PathBuf},
sync::{Arc, RwLock},
};
use bincode::serialize;
use clap::{App, Arg};
use futures::{future::join_all, StreamExt};
use itertools::Itertools;
use ldraw::{
color::ColorCatalog,
library::{resolve_dependencies_multipart, CacheCollectionStrategy, LibraryLoader, Part... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/tools/ldr2img/src/main.rs | tools/ldr2img/src/main.rs | use std::{
collections::HashMap,
env,
path::{Path, PathBuf},
sync::{Arc, RwLock},
};
use clap::{App, Arg};
use ldraw::{
library::{resolve_dependencies_multipart, PartCache},
parser::{parse_color_definitions, parse_multipart_document},
resolvers::local::LocalLoader,
PartAlias,
};
use ldr... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ir/src/lib.rs | ir/src/lib.rs | use std::{
cmp::Ordering,
fmt,
hash::{Hash, Hasher},
};
use ldraw::color::{ColorCatalog, ColorReference};
use serde::{
de::{Deserializer, Error as DeError, Unexpected, Visitor},
ser::Serializer,
Deserialize, Serialize,
};
pub mod constraints;
pub mod geometry;
pub mod model;
pub mod part;
#[d... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ir/src/geometry.rs | ir/src/geometry.rs | use ldraw::{Matrix4, Vector2, Vector3};
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct BoundingBox2 {
pub min: Vector2,
pub max: Vector2,
}
impl BoundingBox2 {
pub fn nil() -> Self {
BoundingBox2 {
min: Vector2::new(0.0, 0.0),
... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ir/src/model.rs | ir/src/model.rs | use std::{
collections::{HashMap, HashSet},
fmt,
hash::Hash,
sync::{Arc, RwLock},
vec::Vec,
};
use cgmath::SquareMatrix;
use ldraw::{
color::{ColorCatalog, ColorReference},
document::{Document as LdrawDocument, MultipartDocument as LdrawMultipartDocument},
elements::{Command, Meta},
... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ir/src/part.rs | ir/src/part.rs | use std::{
cell::RefCell, collections::HashMap, f32, fmt::Debug, ops::Deref, rc::Rc, sync::Arc, vec::Vec,
};
use cgmath::{AbsDiffEq, InnerSpace, Rad, SquareMatrix};
use kdtree::{distance::squared_euclidean, KdTree};
use ldraw::{
color::{ColorCatalog, ColorReference},
document::{Document, MultipartDocument}... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | true |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ir/src/constraints.rs | ir/src/constraints.rs | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false | |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/olr/src/lib.rs | olr/src/lib.rs | pub mod context;
pub mod error;
pub mod ops;
| rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/olr/src/error.rs | olr/src/error.rs | use std::{
error::Error,
fmt::{Display, Formatter, Result as FmtResult},
};
#[derive(Debug)]
pub enum ContextCreationError {
NoAdapterFound,
RequestDeviceError(wgpu::RequestDeviceError),
}
impl Display for ContextCreationError {
fn fmt(&self, f: &mut Formatter) -> FmtResult {
match self {
... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/olr/src/context.rs | olr/src/context.rs | use image::RgbaImage;
use ldraw::Vector2;
use ldraw_ir::geometry::BoundingBox2;
use ldraw_renderer::{pipeline::RenderingPipelineManager, projection::Projection, Entity};
use crate::error::ContextCreationError;
pub struct Context {
pub width: u32,
pub height: u32,
pub device: wgpu::Device,
pub queue: ... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/olr/src/ops.rs | olr/src/ops.rs | use cgmath::SquareMatrix;
use image::RgbaImage;
use ldraw::{
color::{Color, ColorCatalog},
Matrix4, PartAlias, Point3,
};
use ldraw_ir::{
geometry::BoundingBox2,
model::{GroupId, Model},
};
use ldraw_renderer::{
display_list::DisplayList,
part::{Part, PartQuerier},
projection::{OrthographicC... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ldraw/src/lib.rs | ldraw/src/lib.rs | use std::cmp;
use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
use std::hash::{Hash, Hasher};
use std::ops::BitXor;
use cgmath::{
Matrix3 as Matrix3_, Matrix4 as Matrix4_, Point2 as Point2_, Point3 as Point3_,
Vector2 as Vector2_, Vector3 as Vector3_, Vector4 as Vector4_,
};
use serde::de::{Erro... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ldraw/src/parser.rs | ldraw/src/parser.rs | use std::{collections::HashMap, marker::Unpin, str::Chars};
use cgmath::Matrix;
use futures::{stream::Enumerate, StreamExt};
use tokio::io::{AsyncBufRead, AsyncBufReadExt};
use tokio_stream::wrappers::LinesStream;
use crate::{
color::{
Color, ColorCatalog, ColorReference, CustomizedMaterial, Material, Mat... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | true |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ldraw/src/document.rs | ldraw/src/document.rs | use std::{
collections::{HashMap, HashSet},
iter::Iterator,
vec::Vec,
};
use crate::{
elements::{Command, Header, Line, Meta, OptionalLine, PartReference, Quad, Triangle},
PartAlias, Winding,
};
#[derive(Clone, Debug, PartialEq)]
pub enum BfcCertification {
NotApplicable,
NoCertify,
Ce... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ldraw/src/error.rs | ldraw/src/error.rs | use std::{error::Error, fmt, io::Error as IoError};
#[cfg(any(target_arch = "wasm32", feature = "http"))]
use reqwest::Error as ReqwestError;
#[cfg(not(any(target_arch = "wasm32", feature = "http")))]
mod stub {
use super::{fmt, Error};
#[derive(Debug)]
pub struct ReqwestError;
impl fmt::Display for... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ldraw/src/library.rs | ldraw/src/library.rs | use std::{
collections::{HashMap, HashSet},
ops::Deref,
sync::{Arc, RwLock},
};
use async_trait::async_trait;
use futures::future::join_all;
use serde::{Deserialize, Serialize};
use crate::{
color::ColorCatalog,
document::{Document, MultipartDocument},
error::ResolutionError,
PartAlias,
};... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ldraw/src/elements.rs | ldraw/src/elements.rs | use crate::color::ColorReference;
use crate::{Matrix4, PartAlias, Vector4, Winding};
#[derive(Clone, Debug, PartialEq)]
pub struct Header(pub String, pub String);
#[derive(Clone, Debug, PartialEq)]
pub enum BfcStatement {
Winding(Winding),
Clip(Option<Winding>),
NoClip,
InvertNext,
}
#[derive(Clone, ... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ldraw/src/writer.rs | ldraw/src/writer.rs | use std::fmt;
use async_trait::async_trait;
use cgmath::{Matrix, Vector4};
use tokio::io::{AsyncWrite, AsyncWriteExt};
use crate::color::ColorReference;
use crate::document::{BfcCertification, Document, MultipartDocument};
use crate::elements::{
BfcStatement, Command, Header, Line, Meta, OptionalLine, PartReferen... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ldraw/src/color.rs | ldraw/src/color.rs | use std::collections::HashMap;
use std::hash::{Hash, Hasher};
use serde::de::Deserializer;
use serde::ser::Serializer;
use serde::{Deserialize, Serialize};
use crate::Vector4;
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Rgba {
value: [u8; 4],
}
impl Rgba {
pub fn new(r: u8, g: u8, b: u8, a: u8) -> R... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ldraw/src/resolvers/local.rs | ldraw/src/resolvers/local.rs | use std::path::PathBuf;
use async_trait::async_trait;
use tokio::{
fs::{try_exists, File},
io::BufReader,
};
use crate::{
color::ColorCatalog,
document::MultipartDocument,
error::ResolutionError,
library::{DocumentLoader, FileLocation, LibraryLoader, PartKind},
parser::{parse_color_definit... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ldraw/src/resolvers/http.rs | ldraw/src/resolvers/http.rs | use async_trait::async_trait;
use futures::join;
use reqwest::{Client, Error, Response, StatusCode, Url};
use tokio::io::BufReader;
use crate::{
color::ColorCatalog,
document::MultipartDocument,
error::ResolutionError,
library::{DocumentLoader, FileLocation, LibraryLoader, PartKind},
parser::{parse... | rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
segfault87/ldraw.rs | https://github.com/segfault87/ldraw.rs/blob/50691a378e23210183a0ebbc84760d5cf5819b1b/ldraw/src/resolvers/mod.rs | ldraw/src/resolvers/mod.rs | #[cfg(any(target_arch = "wasm32", feature = "http"))]
pub mod http;
#[cfg(not(target_arch = "wasm32"))]
pub mod local;
| rust | MIT | 50691a378e23210183a0ebbc84760d5cf5819b1b | 2026-01-04T20:25:16.216619Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/lib.rs | crates/hwp-core/src/lib.rs | /// HWP Core Library
///
/// This library provides core functionality for parsing HWP files.
/// It accepts byte arrays as input to support cross-platform usage.
pub mod cfb;
pub mod decompress;
pub mod document;
pub mod error;
pub mod types;
pub mod viewer;
use ::cfb::CompoundFile;
use std::io::Cursor;
pub use cfb::... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/cfb.rs | crates/hwp-core/src/cfb.rs | /// CFB (Compound File Binary) parsing module
///
/// This module handles parsing of CFB structures used in HWP files.
/// HWP 파일은 CFB 형식을 사용하여 여러 스토리지와 스트림을 포함합니다.
///
/// 스펙 문서 매핑: 표 2 - 파일 구조 (CFB 구조)
use crate::error::HwpError;
use cfb::CompoundFile;
use std::io::{Cursor, Read};
/// CFB parser for HWP files
/// HW... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/error.rs | crates/hwp-core/src/error.rs | /// Error types for HWP file parsing
///
/// This module defines all error types that can occur during HWP file parsing.
use thiserror::Error;
/// Main error type for HWP parsing operations
#[derive(Debug, Clone, Error)]
pub enum HwpError {
// ===== CFB related errors =====
/// Failed to parse CFB structure
... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/types.rs | crates/hwp-core/src/types.rs | /// HWP 5.0 자료형 정의
///
/// 표 1: 자료형에 따른 타입 정의
/// 스펙 문서와 1:1 매핑을 위해 모든 자료형을 명시적으로 정의합니다.
use crate::error::HwpError;
use serde::{Deserialize, Serialize};
/// 소수점 2자리로 반올림하는 trait
pub trait RoundTo2dp {
/// 소수점 2자리로 반올림
fn round_to_2dp(self) -> f64;
}
impl RoundTo2dp for f64 {
fn round_to_2dp(self) -> f64 ... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/decompress.rs | crates/hwp-core/src/decompress.rs | /// Decompression module for HWP files
///
/// This module handles zlib/deflate decompression used in HWP 5.0 files.
/// HWP files use raw deflate format (windowBits: -15) for DocInfo and BodyText streams.
use crate::error::{CompressionFormat, HwpError};
use flate2::read::{DeflateDecoder, ZlibDecoder};
use std::io::Rea... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/mod.rs | crates/hwp-core/src/viewer/mod.rs | /// Viewer module for converting HWP documents to various formats
/// HWP 문서를 다양한 형식으로 변환하는 뷰어 모듈
///
/// This module provides functionality to convert parsed HWP documents
/// into different output formats like Markdown, HTML, Canvas, PDF, etc.
/// 이 모듈은 파싱된 HWP 문서를 마크다운, HTML, Canvas, PDF 등 다양한 출력 형식으로 변환하는 기능을 제공합니다... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/pdf/mod.rs | crates/hwp-core/src/viewer/pdf/mod.rs | //! PDF converter for HWP documents
//! HWP 문서를 PDF로 변환하는 모듈
//!
//! This module provides functionality to convert HWP documents to PDF format.
//! PDF output can be used for printing, archiving, or document distribution.
//! 이 모듈은 HWP 문서를 PDF 형식으로 변환하는 기능을 제공합니다.
//! PDF 출력은 인쇄, 보관, 문서 배포에 사용할 수 있습니다.
//!
//! # Status... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/canvas/mod.rs | crates/hwp-core/src/viewer/canvas/mod.rs | //! Canvas converter for HWP documents
//! HWP 문서를 Canvas로 변환하는 모듈
//!
//! This module provides functionality to convert HWP documents to Canvas format.
//! Canvas output can be used for rendering in web browsers or exporting as images.
//! 이 모듈은 HWP 문서를 Canvas 형식으로 변환하는 기능을 제공합니다.
//! Canvas 출력은 웹 브라우저에서 렌더링하거나 이미지로 내... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/page.rs | crates/hwp-core/src/viewer/html/page.rs | use crate::document::bodytext::ctrl_header::{CtrlHeaderData, PageNumberPosition};
use crate::document::HwpDocument;
use crate::types::RoundTo2dp;
use crate::{document::bodytext::PageDef, INT32};
/// 페이지 렌더링 모듈 / Page rendering module
/// 페이지를 HTML로 렌더링 / Render page to HTML
pub fn render_page(
page_number: usize,
... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/image.rs | crates/hwp-core/src/viewer/html/image.rs | /// 이미지 렌더링 모듈 / Image rendering module
use crate::types::INT32;
use crate::viewer::html::styles::{int32_to_mm, round_to_2dp};
/// 이미지를 HTML로 렌더링 / Render image to HTML
pub fn render_image(
image_url: &str,
left: INT32,
top: INT32,
width: INT32,
height: INT32,
) -> String {
let left_mm = round_... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/document.rs | crates/hwp-core/src/viewer/html/document.rs | use super::page;
use super::pagination::{PageBreakReason, PaginationContext};
use super::paragraph::{
render_paragraph, ParagraphPosition, ParagraphRenderContext, ParagraphRenderState,
};
use super::styles;
use super::styles::round_to_2dp;
use super::HtmlOptions;
use crate::document::bodytext::ctrl_header::{CtrlHea... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/styles.rs | crates/hwp-core/src/viewer/html/styles.rs | use crate::document::docinfo::para_shape::ParagraphAlignment;
/// CSS 스타일 생성 모듈 / CSS style generation module
/// noori_style.css 기반으로 CSS 생성
use crate::document::HwpDocument;
use crate::types::{COLORREF, INT32};
/// CSS 스타일 생성 / Generate CSS styles
/// 문서에 정의된 모든 스타일을 미리 생성하여 누락 방지 / Pre-generate all styles defined i... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/text.rs | crates/hwp-core/src/viewer/html/text.rs | /// 텍스트 렌더링 모듈 / Text rendering module
use crate::document::{
bodytext::{CharShapeInfo, ParagraphRecord},
HwpDocument,
};
/// 텍스트를 HTML로 렌더링 / Render text to HTML
pub fn render_text(
text: &str,
char_shapes: &[CharShapeInfo],
document: &HwpDocument,
_css_prefix: &str,
) -> String {
if text.... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/options.rs | crates/hwp-core/src/viewer/html/options.rs | /// HTML 변환 옵션 / HTML conversion options
#[derive(Debug, Clone)]
pub struct HtmlOptions {
/// 이미지를 파일로 저장할 디렉토리 경로 (None이면 base64 데이터 URI로 임베드)
/// Optional directory path to save images as files. If None, images are embedded as base64 data URIs.
pub image_output_dir: Option<String>,
/// HTML 파일이 저장되는 ... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/mod.rs | crates/hwp-core/src/viewer/html/mod.rs | /// HTML converter for HWP documents
/// HWP 문서를 HTML로 변환하는 모듈
///
/// This module provides functionality to convert HWP documents to HTML format.
/// 이 모듈은 HWP 문서를 HTML 형식으로 변환하는 기능을 제공합니다.
///
/// noori.html 스타일의 정확한 레이아웃 HTML 뷰어
mod common;
mod ctrl_header;
mod document;
mod image;
mod line_segment;
mod options;
mod... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/common.rs | crates/hwp-core/src/viewer/html/common.rs | /// HTML 뷰어 공통 유틸리티 함수 / HTML viewer common utility functions
use crate::document::{BinDataRecord, HwpDocument};
use crate::{HwpError, WORD};
use base64::{engine::general_purpose::STANDARD, Engine as _};
use std::fs;
use std::path::Path;
/// Get file extension from BinData ID
/// BinData ID에서 파일 확장자 가져오기
pub fn get_ex... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/pagination.rs | crates/hwp-core/src/viewer/html/pagination.rs | /// 페이지네이션 모듈 / Pagination module
///
/// HTML 뷰어의 페이지 나누기 로직을 담당합니다.
/// Handles page break logic for HTML viewer.
use crate::document::bodytext::{ColumnDivideType, PageDef, ParagraphRecord};
use crate::document::Paragraph;
/// 페이지네이션 컨텍스트 / Pagination context
pub struct PaginationContext {
/// 이전 문단의 vertical_po... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/line_segment.rs | crates/hwp-core/src/viewer/html/line_segment.rs | use crate::document::bodytext::ctrl_header::VertRelTo;
/// 라인 세그먼트 렌더링 모듈 / Line segment rendering module
use crate::document::bodytext::{
control_char::{ControlChar, ControlCharPosition},
CharShapeInfo, LineSegmentInfo, PageDef, Table,
};
use crate::document::CtrlHeaderData;
use crate::viewer::html::ctrl_heade... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/paragraph.rs | crates/hwp-core/src/viewer/html/paragraph.rs | use super::common;
use super::ctrl_header;
use super::line_segment::{
DocumentRenderState, ImageInfo, LineSegmentContent, LineSegmentRenderContext, TableInfo,
};
use super::pagination::{self, PaginationContext, PaginationResult};
use super::text;
use super::HtmlOptions;
use crate::document::bodytext::{
control_... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/endnote.rs | crates/hwp-core/src/viewer/html/ctrl_header/endnote.rs | use crate::document::bodytext::ParagraphRecord;
use crate::document::{CtrlHeader, Paragraph};
use super::CtrlHeaderResult;
/// 미주 처리 / Process endnote
pub fn process_endnote<'a>(
_header: &'a CtrlHeader,
_children: &'a [ParagraphRecord],
_paragraphs: &[Paragraph],
) -> CtrlHeaderResult<'a> {
// TODO: 미... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/shape_object.rs | crates/hwp-core/src/viewer/html/ctrl_header/shape_object.rs | use super::CtrlHeaderResult;
use crate::document::bodytext::ctrl_header::VertRelTo;
use crate::document::bodytext::ParagraphRecord;
use crate::document::{CtrlHeader, CtrlHeaderData, Paragraph};
use crate::viewer::html::common;
use crate::viewer::html::line_segment::ImageInfo;
use crate::viewer::HtmlOptions;
use crate::... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/footer.rs | crates/hwp-core/src/viewer/html/ctrl_header/footer.rs | use crate::document::bodytext::ParagraphRecord;
use crate::document::{CtrlHeader, Paragraph};
use super::CtrlHeaderResult;
/// 꼬리말 처리 / Process footer
pub fn process_footer<'a>(
_header: &'a CtrlHeader,
_children: &'a [ParagraphRecord],
_paragraphs: &[Paragraph],
) -> CtrlHeaderResult<'a> {
// TODO: 꼬리... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/column_def.rs | crates/hwp-core/src/viewer/html/ctrl_header/column_def.rs | use super::CtrlHeaderResult;
use crate::document::bodytext::ParagraphRecord;
use crate::document::{CtrlHeader, Paragraph};
/// 단 정의 처리 / Process column definition
pub fn process_column_def<'a>(
_header: &'a CtrlHeader,
_children: &'a [ParagraphRecord],
_paragraphs: &[Paragraph],
) -> CtrlHeaderResult<'a> {... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/footnote.rs | crates/hwp-core/src/viewer/html/ctrl_header/footnote.rs | use crate::document::bodytext::ParagraphRecord;
use crate::document::{CtrlHeader, Paragraph};
use super::CtrlHeaderResult;
/// 각주 처리 / Process footnote
pub fn process_footnote<'a>(
_header: &'a CtrlHeader,
_children: &'a [ParagraphRecord],
_paragraphs: &[Paragraph],
) -> CtrlHeaderResult<'a> {
// TODO:... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/header.rs | crates/hwp-core/src/viewer/html/ctrl_header/header.rs | use crate::document::bodytext::ParagraphRecord;
use crate::document::{CtrlHeader, Paragraph};
use super::CtrlHeaderResult;
/// 머리말 처리 / Process header
pub fn process_header<'a>(
_header: &'a CtrlHeader,
_children: &'a [ParagraphRecord],
_paragraphs: &[Paragraph],
) -> CtrlHeaderResult<'a> {
// TODO: 머리... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/mod.rs | crates/hwp-core/src/viewer/html/ctrl_header/mod.rs | mod column_def;
mod endnote;
mod footer;
mod footnote;
mod header;
mod section_def;
/// CtrlHeader 처리 모듈 / CtrlHeader processing module
///
/// 각 ctrl_id 타입별로 독립적인 모듈로 처리합니다.
/// Each ctrl_id type is processed in its own independent module.
mod shape_object;
// table 모듈은 폴더로 분리되어 있음 / table module is separated into a ... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/section_def.rs | crates/hwp-core/src/viewer/html/ctrl_header/section_def.rs | use super::CtrlHeaderResult;
use crate::document::bodytext::ParagraphRecord;
use crate::document::{CtrlHeader, Paragraph};
/// 구역 정의 처리 / Process section definition
pub fn process_section_def<'a>(
_header: &'a CtrlHeader,
_children: &'a [ParagraphRecord],
_paragraphs: &[Paragraph],
) -> CtrlHeaderResult<'a... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/table/svg.rs | crates/hwp-core/src/viewer/html/ctrl_header/table/svg.rs | /// SVG 렌더링 모듈 / SVG rendering module
use crate::document::bodytext::Table;
use crate::HwpDocument;
use crate::viewer::html::ctrl_header::table::constants::BORDER_OFFSET_MM;
use crate::viewer::html::ctrl_header::table::geometry::{column_positions, row_positions};
use crate::viewer::html::ctrl_header::table::position::... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/table/process.rs | crates/hwp-core/src/viewer/html/ctrl_header/table/process.rs | use crate::document::bodytext::ctrl_header::{CaptionAlign, CtrlHeaderData};
use crate::document::bodytext::{
ControlChar, ControlCharPosition, LineSegmentInfo, ParaTextRun, Paragraph, ParagraphRecord,
};
use crate::document::CtrlHeader;
use crate::viewer::html::ctrl_header::CtrlHeaderResult;
use crate::viewer::htm... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/table/geometry.rs | crates/hwp-core/src/viewer/html/ctrl_header/table/geometry.rs | use crate::document::bodytext::{ParagraphRecord, Table, TableCell};
use crate::viewer::html::styles::{int32_to_mm, round_to_2dp};
use crate::HwpDocument;
/// 셀의 왼쪽 위치 계산 / Calculate cell left position
pub(crate) fn calculate_cell_left(table: &Table, cell: &TableCell) -> f64 {
// 해당 행의 셀들을 사용하여 정확한 열 위치 계산 / Use ce... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/table/render.rs | crates/hwp-core/src/viewer/html/ctrl_header/table/render.rs | use crate::document::bodytext::ctrl_header::{CaptionAlign, CaptionVAlign, CtrlHeaderData};
use crate::document::bodytext::{
ControlChar, ControlCharPosition, LineSegmentInfo, PageDef, Table,
};
use crate::types::{Hwpunit16ToMm, HWPUNIT};
use crate::viewer::html::styles::{int32_to_mm, round_to_2dp};
use crate::viewe... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | true |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/table/mod.rs | crates/hwp-core/src/viewer/html/ctrl_header/table/mod.rs | /// 테이블 컨트롤 처리 및 렌더링 모듈 / Table control processing and rendering module
///
/// 이 모듈은 실제 구현을 `render`와 `process` 서브모듈에 위임하고,
/// 외부에서는 동일한 API(`render_table`, `process_table`, `CaptionInfo`)만 노출합니다.
pub mod cells;
pub mod constants;
pub mod geometry;
pub mod position;
pub mod process;
pub mod render;
pub mod size;
pub ... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/table/cells.rs | crates/hwp-core/src/viewer/html/ctrl_header/table/cells.rs | use std::collections::HashMap;
use crate::document::bodytext::list_header::VerticalAlign;
use crate::document::bodytext::{LineSegmentInfo, ParagraphRecord, Table};
use crate::document::CtrlHeaderData;
use crate::viewer::html::line_segment::{
render_line_segments_with_content, DocumentRenderState, ImageInfo, LineSe... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | true |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/table/constants.rs | crates/hwp-core/src/viewer/html/ctrl_header/table/constants.rs | /// 테이블 렌더링 상수 / Table rendering constants
pub(crate) const SVG_PADDING_MM: f64 = 2.5;
pub(crate) const BORDER_COLOR: &str = "#000000";
pub(crate) const BORDER_WIDTH_MM: f64 = 0.12;
pub(crate) const BORDER_OFFSET_MM: f64 = 0.06;
| rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/table/position.rs | crates/hwp-core/src/viewer/html/ctrl_header/table/position.rs | use crate::document::bodytext::ctrl_header::{CtrlHeaderData, HorzRelTo, VertRelTo};
use crate::document::bodytext::PageDef;
use crate::types::{RoundTo2dp, INT32};
use crate::viewer::html::styles::{int32_to_mm, round_to_2dp};
/// viewBox 데이터 / ViewBox data
#[derive(Clone, Copy)]
pub(crate) struct ViewBox {
pub left... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/table/size.rs | crates/hwp-core/src/viewer/html/ctrl_header/table/size.rs | use std::collections::HashMap;
use crate::document::bodytext::ctrl_header::CtrlHeaderData;
use crate::document::bodytext::{ParagraphRecord, Table};
use crate::types::Hwpunit16ToMm;
use crate::viewer::html::styles::{int32_to_mm, round_to_2dp};
/// 셀 마진을 mm 단위로 변환 / Convert cell margin to mm
fn cell_margin_to_mm(margin... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/table/svg/borders.rs | crates/hwp-core/src/viewer/html/ctrl_header/table/svg/borders.rs | use crate::document::bodytext::{Table, TableCell};
use crate::document::docinfo::border_fill::BorderLine;
use crate::viewer::html::styles::round_to_2dp;
use crate::{BorderFill, HwpDocument};
use crate::viewer::html::ctrl_header::table::geometry::{
calculate_cell_left, calculate_cell_top, get_cell_height,
};
use cr... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/html/ctrl_header/table/svg/fills.rs | crates/hwp-core/src/viewer/html/ctrl_header/table/svg/fills.rs | use crate::document::bodytext::Table;
use crate::document::FillInfo;
use crate::HwpDocument;
use crate::viewer::html::styles::round_to_2dp;
use crate::viewer::html::ctrl_header::table::geometry::{
calculate_cell_left, calculate_cell_top, get_cell_height,
};
use std::collections::HashMap;
/// 배경 패턴 및 면 채우기 생성 / ... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/core/renderer.rs | crates/hwp-core/src/viewer/core/renderer.rs | /// Renderer trait for different output formats
/// 다양한 출력 형식을 위한 렌더러 트레이트
///
/// 각 뷰어(HTML, Markdown, PDF, Image 등)는 이 트레이트를 구현하여
/// HWP 문서를 해당 형식으로 변환합니다.
///
/// Each viewer (HTML, Markdown, PDF, Image, etc.) implements this trait
/// to convert HWP documents to that format.
use crate::document::{bodytext::Table, ... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/core/bodytext.rs | crates/hwp-core/src/viewer/core/bodytext.rs | /// Common bodytext processing logic
/// 공통 본문 처리 로직
///
/// 모든 뷰어에서 공통으로 사용되는 본문 처리 로직을 제공합니다.
/// 출력 형식은 Renderer 트레이트를 통해 처리됩니다.
///
/// Provides common bodytext processing logic used by all viewers.
/// Output format is handled through the Renderer trait.
use crate::document::{ColumnDivideType, CtrlHeader, HwpDocum... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/core/mod.rs | crates/hwp-core/src/viewer/core/mod.rs | /// Core viewer module - 공통 로직
/// Core viewer module - Common logic
///
/// 이 모듈은 모든 뷰어(HTML, Markdown, PDF, Image 등)에서 공통으로 사용되는
/// 로직을 제공합니다. 출력 형식만 다른 렌더러 패턴을 사용합니다.
///
/// This module provides common logic used by all viewers (HTML, Markdown, PDF, Image, etc.).
/// Uses a renderer pattern where only the output f... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/core/paragraph.rs | crates/hwp-core/src/viewer/core/paragraph.rs | /// Common paragraph processing logic
/// 공통 문단 처리 로직
///
/// 모든 뷰어에서 공통으로 사용되는 문단 처리 로직을 제공합니다.
/// 출력 형식은 Renderer 트레이트를 통해 처리됩니다.
///
/// Provides common paragraph processing logic used by all viewers.
/// Output format is handled through the Renderer trait.
use crate::document::{HwpDocument, Paragraph, ParagraphRec... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/renderer.rs | crates/hwp-core/src/viewer/markdown/renderer.rs | /// Markdown Renderer implementation
/// Markdown 렌더러 구현
use crate::document::{bodytext::Table, HwpDocument};
use crate::viewer::core::renderer::{DocumentParts, Renderer, TextStyles};
/// Markdown Renderer
pub struct MarkdownRenderer;
impl Renderer for MarkdownRenderer {
type Options = crate::viewer::markdown::Ma... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/collect.rs | crates/hwp-core/src/viewer/markdown/collect.rs | /// Functions for collecting text and images from paragraphs
/// 문단에서 텍스트와 이미지를 수집하는 함수들
use crate::document::ParagraphRecord;
/// 재귀적으로 paragraph에서 텍스트와 이미지 ID를 수집
/// Recursively collect text and image IDs from paragraph
pub fn collect_text_and_images_from_paragraph(
para: &crate::document::bodytext::Paragraph,
... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/utils.rs | crates/hwp-core/src/viewer/markdown/utils.rs | /// Utility functions for Markdown conversion
/// 마크다운 변환을 위한 유틸리티 함수들
use crate::document::{HeaderShapeType, HwpDocument};
/// 개요 번호 추적 구조체 / Outline number tracking structure
/// 각 레벨별로 번호를 추적하여 개요 번호를 생성
/// Tracks numbers per level to generate outline numbers
#[derive(Debug, Clone)]
pub(crate) struct OutlineNumber... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/mod.rs | crates/hwp-core/src/viewer/markdown/mod.rs | /// Markdown converter for HWP documents
/// HWP 문서를 마크다운으로 변환하는 모듈
///
/// This module provides functionality to convert HWP documents to Markdown format.
/// 이 모듈은 HWP 문서를 마크다운 형식으로 변환하는 기능을 제공합니다.
///
/// 구조는 HWPTAG 기준으로 나뉘어 있습니다:
/// Structure is organized by HWPTAG:
/// - document: 문서 레벨 변환 (bodytext, docinfo, fil... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/common.rs | crates/hwp-core/src/viewer/markdown/common.rs | /// 공통 유틸리티 함수 / Common utility functions
///
/// 마크다운 변환에 사용되는 공통 함수들을 제공합니다.
/// Provides common functions used in markdown conversion.
use crate::document::{BinDataRecord, HwpDocument};
use crate::error::HwpError;
use base64::{engine::general_purpose::STANDARD, Engine as _};
use std::fs;
use std::path::Path;
/// Ge... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/ctrl_header/endnote.rs | crates/hwp-core/src/viewer/markdown/ctrl_header/endnote.rs | /// ENDNOTE CtrlId conversion to Markdown
/// ENDNOTE CtrlId를 마크다운으로 변환하는 모듈
///
/// 스펙 문서 매핑: 표 127 - 개체 이외의 컨트롤과 컨트롤 ID, ENDNOTE ("en ")
/// Spec mapping: Table 127 - Controls other than objects and Control IDs, ENDNOTE ("en ")
/// Convert ENDNOTE CtrlId to markdown
/// ENDNOTE CtrlId를 마크다운으로 변환
///
/// # Arguments... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/ctrl_header/shape_object.rs | crates/hwp-core/src/viewer/markdown/ctrl_header/shape_object.rs | /// SHAPE_OBJECT CtrlId conversion to Markdown
/// SHAPE_OBJECT CtrlId를 마크다운으로 변환하는 모듈
///
/// 스펙 문서 매핑: 표 127 - 개체 컨트롤 ID, SHAPE_OBJECT ("gso ")
/// Spec mapping: Table 127 - Object Control IDs, SHAPE_OBJECT ("gso ")
use crate::document::CtrlHeader;
/// Convert SHAPE_OBJECT CtrlId to markdown
/// SHAPE_OBJECT CtrlId를... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/ctrl_header/footer.rs | crates/hwp-core/src/viewer/markdown/ctrl_header/footer.rs | /// FOOTER CtrlId conversion to Markdown
/// FOOTER CtrlId를 마크다운으로 변환하는 모듈
///
/// 스펙 문서 매핑: 표 127 - 개체 이외의 컨트롤과 컨트롤 ID, FOOTER ("foot")
/// Spec mapping: Table 127 - Controls other than objects and Control IDs, FOOTER ("foot")
/// Convert FOOTER CtrlId to markdown
/// FOOTER CtrlId를 마크다운으로 변환
///
/// # Arguments / 매개변... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/ctrl_header/column_def.rs | crates/hwp-core/src/viewer/markdown/ctrl_header/column_def.rs | /// COLUMN_DEF CtrlId conversion to Markdown
/// COLUMN_DEF CtrlId를 마크다운으로 변환하는 모듈
///
/// 스펙 문서 매핑: 표 127 - 개체 이외의 컨트롤과 컨트롤 ID, COLUMN_DEF ("cold")
/// Spec mapping: Table 127 - Controls other than objects and Control IDs, COLUMN_DEF ("cold")
/// Convert COLUMN_DEF CtrlId to markdown
/// COLUMN_DEF CtrlId를 마크다운으로 변환
/... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/ctrl_header/table.rs | crates/hwp-core/src/viewer/markdown/ctrl_header/table.rs | /// TABLE CtrlId conversion to Markdown
/// TABLE CtrlId를 마크다운으로 변환하는 모듈
///
/// 스펙 문서 매핑: 표 127 - 개체 컨트롤 ID, TABLE ("tbl ")
/// Spec mapping: Table 127 - Object Control IDs, TABLE ("tbl ")
use crate::document::{CtrlHeader, CtrlHeaderData};
/// Convert TABLE CtrlId to markdown
/// TABLE CtrlId를 마크다운으로 변환
///
/// # Arg... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/ctrl_header/footnote.rs | crates/hwp-core/src/viewer/markdown/ctrl_header/footnote.rs | /// FOOTNOTE CtrlId conversion to Markdown
/// FOOTNOTE CtrlId를 마크다운으로 변환하는 모듈
///
/// 스펙 문서 매핑: 표 127 - 개체 이외의 컨트롤과 컨트롤 ID, FOOTNOTE ("fn ")
/// Spec mapping: Table 127 - Controls other than objects and Control IDs, FOOTNOTE ("fn ")
/// Convert FOOTNOTE CtrlId to markdown
/// FOOTNOTE CtrlId를 마크다운으로 변환
///
/// # Arg... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/ctrl_header/header.rs | crates/hwp-core/src/viewer/markdown/ctrl_header/header.rs | /// HEADER CtrlId conversion to Markdown
/// HEADER CtrlId를 마크다운으로 변환하는 모듈
///
/// 스펙 문서 매핑: 표 127 - 개체 이외의 컨트롤과 컨트롤 ID, HEADER ("head")
/// Spec mapping: Table 127 - Controls other than objects and Control IDs, HEADER ("head")
/// Convert HEADER CtrlId to markdown
/// HEADER CtrlId를 마크다운으로 변환
///
/// # Arguments / 매개변... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/ctrl_header/mod.rs | crates/hwp-core/src/viewer/markdown/ctrl_header/mod.rs | /// CtrlHeader conversion to Markdown
/// CtrlHeader를 마크다운으로 변환하는 모듈
///
/// 스펙 문서 매핑: 표 57 - 본문의 데이터 레코드, CTRL_HEADER (HWPTAG_BEGIN + 55)
/// Spec mapping: Table 57 - BodyText data records, CTRL_HEADER (HWPTAG_BEGIN + 55)
mod column_def;
mod endnote;
mod footer;
mod footnote;
mod header;
mod page_number;
mod shape_obj... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/ctrl_header/page_number.rs | crates/hwp-core/src/viewer/markdown/ctrl_header/page_number.rs | /// PAGE_NUMBER CtrlId conversion to Markdown
/// PAGE_NUMBER CtrlId를 마크다운으로 변환하는 모듈
///
/// 스펙 문서 매핑: 표 127 - 개체 이외의 컨트롤과 컨트롤 ID, PAGE_NUMBER ("pgno") / PAGE_NUMBER_POS ("pgnp")
/// Spec mapping: Table 127 - Controls other than objects and Control IDs, PAGE_NUMBER ("pgno") / PAGE_NUMBER_POS ("pgnp")
use crate::documen... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/document/docinfo.rs | crates/hwp-core/src/viewer/markdown/document/docinfo.rs | /// DocInfo conversion to Markdown
/// 문서 정보를 마크다운으로 변환하는 모듈
use crate::document::{HwpDocument, ParagraphRecord};
/// 문서에서 첫 번째 PageDef 정보 추출 / Extract first PageDef information from document
pub fn extract_page_info(document: &HwpDocument) -> Option<&crate::document::bodytext::PageDef> {
for section in &document.... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/document/mod.rs | crates/hwp-core/src/viewer/markdown/document/mod.rs | /// Document-level markdown conversion
/// 문서 레벨의 마크다운 변환
///
/// HWP 문서의 각 부분(bodytext, docinfo, fileheader 등)을 마크다운으로 변환하는 모듈
/// Module for converting each part of HWP document (bodytext, docinfo, fileheader, etc.) to markdown
pub mod bodytext;
mod docinfo;
pub mod fileheader;
pub use bodytext::convert_bodytext_to_... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/document/fileheader.rs | crates/hwp-core/src/viewer/markdown/document/fileheader.rs | /// FileHeader conversion to Markdown
/// 파일 헤더를 마크다운으로 변환하는 모듈
use crate::document::HwpDocument;
/// 버전 번호를 읽기 쉬운 문자열로 변환
/// Convert version number to readable string
pub fn format_version(document: &HwpDocument) -> String {
let version = document.file_header.version;
let major = (version >> 24) & 0xFF;
... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/document/bodytext/table.rs | crates/hwp-core/src/viewer/markdown/document/bodytext/table.rs | /// Table conversion to Markdown
/// 테이블을 마크다운으로 변환하는 모듈
///
/// 스펙 문서 매핑: 표 57 - 본문의 데이터 레코드, TABLE (HWPTAG_BEGIN + 61)
/// Spec mapping: Table 57 - BodyText data records, TABLE (HWPTAG_BEGIN + 61)
use crate::document::{bodytext::Table, HwpDocument, ParagraphRecord};
/// Convert table to markdown format
/// 테이블을 마크다운... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/document/bodytext/shape_component_picture.rs | crates/hwp-core/src/viewer/markdown/document/bodytext/shape_component_picture.rs | /// ShapeComponentPicture conversion to Markdown
/// ShapeComponentPicture를 마크다운으로 변환하는 모듈
///
/// 스펙 문서 매핑: 표 57 - 본문의 데이터 레코드, SHAPE_COMPONENT_PICTURE
/// Spec mapping: Table 57 - BodyText data records, SHAPE_COMPONENT_PICTURE
use crate::document::{bodytext::ShapeComponentPicture, HwpDocument};
use crate::viewer::mar... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/document/bodytext/mod.rs | crates/hwp-core/src/viewer/markdown/document/bodytext/mod.rs | /// BodyText conversion to Markdown
/// 본문 텍스트를 마크다운으로 변환하는 모듈
///
/// HWP 문서의 본문 텍스트(bodytext) 관련 레코드들을 마크다운으로 변환하는 모듈
/// Module for converting BodyText-related records in HWP documents to markdown
mod list_header;
mod para_text;
pub mod paragraph;
mod shape_component;
pub mod shape_component_picture;
pub mod table;
... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
ohah/hwpjs | https://github.com/ohah/hwpjs/blob/19df26a209c6e780b4c3b03d2ab628209e1ae311/crates/hwp-core/src/viewer/markdown/document/bodytext/shape_component.rs | crates/hwp-core/src/viewer/markdown/document/bodytext/shape_component.rs | /// ShapeComponent conversion to Markdown
/// ShapeComponent를 마크다운으로 변환하는 모듈
///
/// 스펙 문서 매핑: 표 57 - 본문의 데이터 레코드, SHAPE_COMPONENT (HWPTAG_BEGIN + 60)
/// Spec mapping: Table 57 - BodyText data records, SHAPE_COMPONENT (HWPTAG_BEGIN + 60)
use crate::document::{HwpDocument, ParagraphRecord};
use crate::viewer::markdown:... | rust | MIT | 19df26a209c6e780b4c3b03d2ab628209e1ae311 | 2026-01-04T20:24:59.575438Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.