Add text extractor

This commit is contained in:
2026-03-18 20:47:29 -07:00
parent 915d10bd0e
commit 2f2eb323d5
2 changed files with 75 additions and 0 deletions

View File

@@ -28,6 +28,9 @@ pub use toml::*;
mod group;
pub use group::*;
mod text;
pub use text::*;
use crate::{
extract::{
misc::MapExtractor,
@@ -77,6 +80,10 @@ impl ItemExtractor {
Label::new("toml").unwrap(),
PileValue::ObjectExtractor(Arc::new(TomlExtractor::new(item))),
),
(
Label::new("text").unwrap(),
PileValue::ObjectExtractor(Arc::new(TextExtractor::new(item))),
),
(
Label::new("groups").unwrap(),
PileValue::ObjectExtractor(Arc::new(GroupExtractor::new(item))),
@@ -110,6 +117,7 @@ impl ObjectExtractor for ItemExtractor {
Label::new("pdf").unwrap(),
Label::new("json").unwrap(),
Label::new("toml").unwrap(),
Label::new("text").unwrap(),
Label::new("groups").unwrap(),
]);
}